.NET Core 2.1 TFS build failed on restore step

2019-07-20 01:42发布

问题:

I try to build my .NET Core proj in TFS but the build failed in restore step with Error: Failed which: Not found dotnet: null error.

.NET Core version: 2.1.3 TFS version: 15.112.26307.0 Build definition: .NET Core (PREVIEW)

回答1:

This can happen if you don't have the .NET Core SDK installed on your build machine.

Can you make sure you have the latest version of the .NET Core SDK? For example, you should be able to log in to your build machine and run dotnet from the command line, and get basic usage information.

You can download the latest version of the .NET Core SDK at https://www.microsoft.com/net/download/windows.



标签: tfs .net-core