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

后端 未结 6 879
轮回少年
轮回少年 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 02:59

    I was also facing the same issue.I made a mistake that target frame work was different at all places.U can verify that at below mentioned places same framework should be selected.I am using VS2015. Place 1 - right click on Project-> Properties -> application -> target framework for me (.Net framework 4) you can select according to your project. Place 2 - Right click on installer project -> properties -> prerequisites-> select microsoft framework 4 (X86 and X64) for u it depends which framework you target. Place 3 - Right click on Installer project -> click on view-> launch condition -> .net Framework -> right click properties-> select >net framework 4. I was working with windows services and facing this issue while updating from vs 2010 to 2015.Hope it will help you.

提交回复
热议问题