为什么自动构建在vistudio online上托管的解决方案仍然失败

时间:2014-02-25 16:11:17

标签: tfs2013

我配置了一个构建策略,可以在线成功检入Visualstudio。 但请记住这个错误:

Summary
    Other Errors
1 error(s)
    Exception Message: The path '$/myproject/mysulution.sln' could not be converted to a local path. Make sure this path is relative to the 'src' folder on the build machine or specify a full server path.
(type ArgumentException)
    Exception Stack Trace: 
    at Microsoft.TeamFoundation.Build.Activities.Core.LocalPathProvider.GetLocalPath(String incomingPath)
    at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance,     ActivityExecutor executor, 
BookmarkManager bookmarkManager)
    at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

使用托管构建控制器,我的构建文件夹在我的本地电脑上。有谁知道我做错了什么?

3 个答案:

答案 0 :(得分:29)

我遇到了同样的错误。检查"源设置"中的服务器路径。构建定义的选项卡与" Process"中的路径相同。通过Projects来构建。矿井不同了。我不小心选错了分支......

答案 1 :(得分:0)

尝试在Build配置中将路径从'$ / myproject / mysulution.sln'更改为'mysulution.sln'

答案 2 :(得分:0)

似乎是新TFS 2013构建服务器的“功能”。 我已经定制了TFS2013默认构建模板以使用旧的工作区创建,如果我在要构建的项目中提供完整的服务器路径,我就无法获得构建解决方案。

但是,如果我使用vanilla默认模板执行相同的操作,那么它可以工作......

微软已经改变了你需要定义构建解决方案的方式,这是非常令人沮丧和恼人的。

作为参考,我也不断收到此错误。

Exception Message: The path '$/ALM/src/Release/TestClass1/TestClass1/TestClass1.sln' could not be converted to a local path. Make sure this path is relative to the 'src' folder on the build machine or specify a full server path. (type ArgumentException)
Exception Stack Trace:    at Microsoft.TeamFoundation.Build.Activities.Core.LocalPathProvider.GetLocalPath(String incomingPath)
   at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)