Logo
PRB: Cannot change the build platform of a project from a Visual Studio add-in

Author: Carlos J. Quintero (Microsoft MVP) Applies to: Microsoft Visual Studio 2005
Date: June 2013   Microsoft Visual Studio 2008
      Microsoft Visual Studio 2010
Introduction

This article shows a problem changing from a Visual Studio add-in the build platform of a project for a given a build solution configuration.

More Information

To change the platform of a project you would need to assign the EnvDTE.SolutionContext.PlatformName property, but that property is read-only (on the contrary to the EnvDTE.SolutionContext.ConfigurationName property, which is writable).

Note: this problem was fixed in Visual Studio 2012 allowing the syntax "configuration|platform" for EnvDTE.SolutionContext.ConfigurationName property (the EnvDTE.SolutionContext.PlatformName property remains read-only). See HOWTO: Change the build platform of a project from a Visual Studio add-in.

Related articles


Go back to the 'Resources for Visual Studio .NET extensibility' section for more articles like this


Top