VSTS build error: non-whitespace before first tag

会有一股神秘感。 提交于 2020-01-05 04:19:10

问题


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:


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])

There is an article that can help you.



来源:https://stackoverflow.com/questions/40383096/vsts-build-error-non-whitespace-before-first-tag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!