Target Version of the .NET Framework does not match Launch Condition

后端 未结 6 878
轮回少年
轮回少年 2021-02-01 02:06

I have a c# project that I am building in VS 2010. It references a C++ project through COM, which is also a part of the solution. Last Friday, I made a successful build, changed

6条回答
  •  你的背包
    2021-02-01 03:04

    It turns out that the C++ code was also associated with .NET for some reason. I used this article to help me change the c++ .NET version from 4.0 to 3.5. The basic steps are

    1. Open the c++ project vcxproj in a text editor
    2. Find v4.0
      • This may need to be created under the Globals PropertyGroup
    3. Change 4.0 to 3.5
    4. Open the project in VS
    5. Right click the c++ project and select properties
    6. Select Common Properties and confirm that the version is 3.5
    7. Select Configuration Properties -> General
    8. Make sure the Platform Toolset is set to v90

提交回复
热议问题