||Carlos J. Quintero (Microsoft MVP)
||Microsoft Visual Studio 2005
||Microsoft Visual Studio 2008
||Microsoft Visual Studio 2010
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.
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.
Go back to the 'Resources for Visual Studio .NET extensibility' section for more articles like this