1
votes

VSTS Build definition is failing and I can't make heads or tails of this error...

C:\Windows\system32\chcp.com 65001 Active code page: 65001 Detected NuGet version 3.3.0.212 / 3.3.0 SYSTEMVSSCONNECTION exists true Error: Non-whitespace before first tag.

Nuget Installer build step, Visual Studio Build build step

Are the build steps out of order? Am I not referencing the right file on the Nuget Installer step? The Nuget Installer calls for a nuget.config xml file but my .Net Core app houses its dependencies in a project.json file. Please let me know if I need to provide more information, or what's missing from the post that would make this easier to diagnose.

1

1 Answers

0
votes

For .Net Core app, using dotnet-restore command to restore package. The dotnet restore command uses NuGet to restore dependencies as well as project-specific tools that are specified in the project.json file.

Add Command Line step to your build definition. (Tool: dotnet, Argument: restore, Working folder: [folder path, which contains the project.json file])

enter image description here

There is an article that can help you.