.NET Core 2.1 TFS 构建在还原步骤失败 [英] .NET Core 2.1 TFS build failed on restore step

查看:37
本文介绍了.NET Core 2.1 TFS 构建在还原步骤失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 TFS 中构建我的 .NET Core 项目,但在恢复步骤中构建失败错误:失败其中:未找到 dotnet:null 错误.

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 版本:2.1.3TFS 版本:15.112.26307.0构建定义:.NET Core(预览版)

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

推荐答案

如果您的构建机器上没有安装 .NET Core SDK,就会发生这种情况.

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

您能否确保您拥有最新版本的 .NET Core SDK?例如,您应该能够登录到您的构建机器并从命令行运行 dotnet,并获取基本的使用信息.

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.

您可以在 https://www 下载最新版本的 .NET Core SDK.microsoft.com/net/download/windows.

这篇关于.NET Core 2.1 TFS 构建在还原步骤失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆