Switch Target Framework in VS.NET 2010
-
26-09-2019 - |
Question
Is there a way to change the target framework of all the projects of a solution in one fell swoop? Changing the target on 18 projects is a little tedious.
Solution
Do a search on the project files for
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
and replace with the desired version.
OTHER TIPS
Scott Dorman wrote a macro to do this: http://www.codeproject.com/Articles/74805/Visual-Studio-2010-and-Target-Framework-Version.aspx
Here is how you change the Target Framework in VS2010.
Right click the Project.
Click the "Compile" tab
At the bottom click "Advanced Complie Options..."
Choose the framework from "Target framework (all configurations):"
Can you record a macro and then loop it through all projects in the solution? (Haven't used 2k10 yet.)