我刚刚将一个示例项目上传到TFS Online(非常简单的单一形式的应用程序),CI构建失败并出现以下错误。我正在运行VS2008:
Debug | Any CPU
1 error(s), 0 warning(s)
$/Sample VS 2008 Projecr/SampleApp.sln - 1 error(s), 0 warning(s)
C:\a\src\SampleApp\SampleApp.csproj (77): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Other Errors
1 error(s)
Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException) Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
任何人都可以帮我解决这个问题,还是指向一个讨论它的现有主题?我已经看过类似的帖子了:使用本地构建服务器,但没有重新:使用TFS Online。
答案 0 :(得分:2)
As you can see here,托管构建服务器上未安装visual studio 2008。您可能需要更新您的 解决方案与Visual Studio 2012或2013兼容,以便在Visual Studio Online上成功编译。如果您没有许可证,可以使用the Express edition。