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

后端 未结 6 888
轮回少年
轮回少年 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:06

    Had same problem as this project had been converted from 2008 to 2010.

    To change the bootstrapper, I opened the .csproj and manually removed instances from 3.5 in it:

    
      False
      .NET Framework 3.5 SP1 Client Profile
      false
    
    
      False
      .NET Framework 3.5 SP1
      false
    
    

    Also, I found out you can just right click on the Setup and Deployment project, hit properties, go to prerequisites, and select the correct .NET framework.

    It was hard to find it, you have to click on the Prerequisites button.

提交回复
热议问题