Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Dec 18, 2007 05:32 PM|LINK
C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets is a file from Visual Studio 2008. Check if the file is there and if it is open it with notepad and see if it looks ok. Maybe Visual Studio 2008 is not
installed? Maybe the file got corrupted or overwritten? If so, you could try copying the file from another machine with 2008 installed or reinstall Visual Studio.
You could also try this: open your .csproj file with notepad and look for a line like <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" Condition="" />. Comment out that line or delete
it and try opening the project again (or even try changing v9.0 to v8.0). I'm not sure if this solution is a good idea though. You would might lose some features when building, like getting a _PublishedWebsites folder.