4

可以在 Git、Visual Studio 2012 Express 项目(更新 2)中正常提交和同步。

当我排队构建时(团队服务 - 不清楚在“构建解决方案”中输入什么我已经尝试了 .sln 文件的完整路径,项目文件

在此处输入图像描述

典型错误(我尝试了很多值):

Exception Message: The project file 'C:\Users
ick\Documents\Visual Studio 2012\Projects\myproject\myproject.csproj' was not found. (type FileNotFoundException)
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)
 TF270003: Failed to copy. Ensure the source directory C:\a\bin exists and that you have the appropriate permissions.

它到底是从哪里获得路径 'c:\a\bin' 的?

有什么想法可以让这个工作吗?

4

2 回答 2

7

根据本指南

在 Web 浏览器中打开您的团队项目。

在此处输入图像描述

浏览到解决方案,然后将路径复制到剪贴板,以便您可以将其粘贴到构建定义的“构建解决方案”框中,如上所示。

在此处输入图像描述

于 2013-06-14T20:47:43.133 回答
2

你把相对路径放到你的解决方案文件中,在我的例子中是:

在此处输入图像描述

c:\a 是构建代理上的检出路径。

于 2013-06-14T20:25:00.220 回答