Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switch Target Framework in VS.NET 2010

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.

like image 715
Jake Pearson Avatar asked Dec 09 '22 16:12

Jake Pearson


2 Answers

Do a search on the project files for

<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

and replace with the desired version.

like image 101
Kyle Alons Avatar answered Dec 15 '22 00:12

Kyle Alons


Scott Dorman wrote a macro to do this: http://www.codeproject.com/Articles/74805/Visual-Studio-2010-and-Target-Framework-Version.aspx

like image 34
JMarsch Avatar answered Dec 14 '22 23:12

JMarsch