Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git in Visual Studio Team Services, Visual Studio 2012 Project - can't deploy from build

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?

like image 334
niico Avatar asked Jan 14 '23 06:01

niico


2 Answers

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

like image 75
DaveShaw Avatar answered Jan 19 '23 10:01

DaveShaw


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.

like image 32
Code Junkie Avatar answered Jan 19 '23 11:01

Code Junkie