Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does an automated build keep failing for solution hosted on Visual Studio Online

I configured a build policy that builds every successful check in to Visual Studio Online, but I keep getting this error:

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)

I am using the hosted build controller and my build folder is on my local PC.

like image 787
kombo Avatar asked Feb 25 '14 16:02

kombo


People also ask

What is build definition in TFS?

A build definition is the mechanism that controls how and when builds occur for team projects in TFS. Each build definition specifies: The things you want to build, like Visual Studio solution files or custom Microsoft Build Engine (MSBuild) project files.

How do I run Azure pipeline in debug mode?

To configure verbose logs for a single run, you can start a new build by choosing Run pipeline and selecting Enable system diagnostics, Run. To configure verbose logs for all runs, you can add a variable named system. debug and set its value to true .

What is azure Devops pipelines?

Azure Pipelines automatically builds and tests code projects to make them available to others. It works with just about any language or project type. Azure Pipelines combines continuous integration (CI) and continuous delivery (CD) to test and build your code and ship it to any target.


1 Answers

I just had the same error. Check if the server path in the "Source Settings" tab of your build definition is the same as the path in your "Process" by Projects to build. The mine was different. I accidentally selected the wrong branch...

like image 118
LockTar Avatar answered Oct 30 '22 13:10

LockTar