Git in Visual Studio Team Services, Visual Studio

2020-04-09 19:06发布

Can commit and sync fine in Git, Visual Studio 2012 Express project (update 2).

When I queue a build (Team Services - it is unclear what to enter in 'solution to build' I have tried the full path to .sln file, project file

enter image description here

Typical Error (I've tried many values):

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.

Where on earth is it getting the path 'c:\a\bin' from?

Any ideas how I can get this working?

2条回答
爷、活的狠高调
2楼-- · 2020-04-09 19:29

As per this guide:

Open your team project in your web browser.

enter image description here

Browse to the solution and then copy the path to your clipboard so that you can paste it into the Solution to build box of the build definition, shown above.

enter image description here

查看更多
SAY GOODBYE
3楼-- · 2020-04-09 19:41

You put the relative path to your solution file, in my case it is :

enter image description here

c:\a is the checkout path on the build agent.

查看更多
登录 后发表回答