【问题标题】:Git in Visual Studio Team Services, Visual Studio 2012 Project - can't deploy from buildVisual Studio Team Services 中的 Git,Visual Studio 2012 项目 - 无法从构建部署
【发布时间】:2016-06-12 06:03:11
【问题描述】:

可以在 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' 的?

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

【问题讨论】:

    标签: git visual-studio tfs continuous-integration azure-devops


    【解决方案1】:

    根据this guide

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

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

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        猜你喜欢
        • 2016-11-17
        • 1970-01-01
        • 1970-01-01
        • 2015-05-27
        • 2017-12-14
        • 2013-01-25
        • 1970-01-01
        • 2016-07-11
        • 1970-01-01
        相关资源
        最近更新 更多