Download it to your \Documents\Visual Studio 2010\Projects\VSMacros80\MyMacros folder, open the Visual Studio Macro IDE (Alt-F11) and add it as an existing item to the "MyMacros" project. The macro is available on my SkyDrive account. This version also incorporates the changes suggested by George (in the comments). It is smart enough to skip project types that don’t support this property and projects that are already at the correct version.
If you select one of the Framework versions that support a Client Profile, it will ask if you want to use the Client Profile or the Full Profile. It prompts you for the target framework version you want to set for all of the projects and then loops through each project in the solution and makes the change. Since I had already created a macro to do this for Visual Studio 2008, I updated that macro to work with Visual Studio 2010 and. The better solution is to automate this through the use of a Visual Studio macro. NET Framework 4.0 Client Profile, these values would be:Īgain, this is not only time consuming but can also be error-prone. One possible solution is to edit the project files by hand in a text editor and change the and properties to the correct values.įor example, for the. The problem with this approach is that if you need to change a lot of projects at one time it becomes rather unwieldy. This can be easily accomplished by editing the project properties: NET Framework to compile against (more information is available here ) and can be set to one of the following values: If you don’t know, the Target Framework version is what tells the compiler which version of the. Almost two years ago, I wrote about a Visual Studio macro that allows you to change the Target Framework version of all projects in a solution.