Support

Kom i kontakt med vår kundtjänst, lär dig allt via vår SDK eller ladda ner den senaste uppdateringen.

Visual Studio Template does not work in Visual Studio 2008

2010-12-06 13:37:32 John

I cannot get the Visual Studio template for Lemoon 4.3 to work in Visual Studio 2008. After I do File | New Project... I get the following error:

The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplications.targets" was not found. Confirm that the path in the <Import> declaration is correct and that the file exists on disk.

All replies

  • 2010-12-06 13:43:06 Linus Birgerstam

    The visual studio template for Lemoon 4.3 is targeted for Visual Studio 2010. The following workaround should make it possible to use with Visual Studio 2008:

    After you get the error above you should edit the .csproj- file in your new project and modify it like this:

    Change:

    <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

    To:

    <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />

    It should now be possible to load the project in Visual Studio 2008.