문제

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.

도움이 되었습니까?

해결책

Do a search on the project files for

<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

and replace with the desired version.

다른 팁

Here is how you change the Target Framework in VS2010.

  1. Right click the Project.

  2. Click the "Compile" tab

  3. At the bottom click "Advanced Complie Options..."

  4. 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.)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top