visual studio 2010 - How to change platformtarget for multiple projects and solutions? -


I am using Visual Studio 2010 Professional Edition. I have several projects and solutions on x86 with the target set target and I need to convert it to any APPU.

It is not possible to do this manually, because there are too many projects, so I was wondering if there is an existing macro or script that can automatically convert to all the projects.

If there is no such macro / script and I have to write a conversion app on my own, then what would be a good way to execute this conversion (convert simple strings to csproj files or a better method)?

  Sub ChangePlatformTarget () Project DTE.Solution.Projects debug for each project . WrititeLine (proj.Name) if not proj.ConfigurationManager is nothing then change project (proj) otherwise 'it's a folder, do something else with it ... end if the project end up project sub-sub-change project Prop.of configuration manager in the form of as a property [property] Active Configuration. Properties ("PlatformTarget") prop.Value = "AnyCPU" ND Sub    

Comments