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
Even after setting the framework version and Setup project prerequisites in all the places mentioned above. The error continued to appear. I then looked in the setup project file and saw the previous NET framework version was still mentioned under the Configurations/Debug section, so in Visual Studio I set the compile mode back to Debug, repeated the same changes and that cleared the error for me.