[Q] What to do with the error: "The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found"?
[try]
0. install the vs patch(which one ?) to get Web Application Project support
1. or just copy the desired Microsoft.WebApplication.targets and its parent folder from somewhere else
e.g. copy from "C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets"
[ref]
http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/db5d2ec9-ee15-4de3-abe6-688d81a36461
"...
You should be OK just copying the contents of that directory to the same spot on your build machine. Alternatively, if you have VS installed on your build machine you should be OK after installing the VS patches.
..."
"... I just encountered the same problem for VS2008/TeamBuild 2008 and it was resolved the same way except by copying over the v9.0 version of the targets file..."
" ... still a problem in 2010.
... I don't want to have to install Visual Studio.
... expect that I ought to be able to build a web project with MSBuild without requiring Visual Studio to succeed.
...expect the WebApplication.targets to be installed with .NET 2.0 SP1.
...
"
沒有留言:
張貼留言