locked
Error MSB8009, but have Visual Studio Express 2008 installed RRS feed

  • Question

  • Greetings all,

    I am attempting to build a C++  project which targets the 2.0 .Net framework (and the v90 toolset).  I built the identical solution successfully in recent days, but today it gives me this error:

    Error 1 error MSB8009: .NET Framework 2.0/3.0/3.5 target the v90 platform toolset. Please make sure that Visual Studio 2008 is installed on the machine. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets 292 6 W0103828

    However, I have Visual Studio Express 2008 installed as well.  Does anyone know what would cause this error when I have both Visual Studio 2010 and Visual Studio Express 2008 installed?

    Thursday, November 14, 2013 4:10 PM

Answers

  • Hi mojave27,

    "I built the identical solution successfully in recent days, but today it gives me this error:"

    Could you please clarify that you build the identical solution with the same compiler or not? If you use the same compiler, could you please tell us that which compiler you use? 

    According to your description, I think your project is set to target the VS2008 toolset. If you open a VC++ project create in VS2008 with VS2010, the conversion process automatically sets the Platform Toolset property to v90, if VS2008 is also installed on the same machine. Attempting to build the project on a machine that only has VS2010 installed, returns the above error. The Platform Toolset property must be set to v100 in order for a project to compile on a machine that only has VS2010 installed.

    More information, please refer to : http://support.esri.com/en/knowledgebase/techarticles/detail/38068


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    • Proposed as answer by Anna Cc Tuesday, November 19, 2013 7:25 AM
    • Marked as answer by Anna Cc Thursday, November 21, 2013 9:21 AM
    Friday, November 15, 2013 9:24 AM