繁体   English   中英

Azure Devops nuget 恢复无法解决依赖关系

[英]Azure Devops nuget restore unable to resolve dependencies

我有一个带有 EF 的 dotnet web api 项目。 当我尝试配置构建并运行Nuget 还原步骤失败并出现以下错误

The nuget command failed with exit code(1) and error(Errors in E:\TFS_Agents2017\...\s\ABC.Employees\ABC.Employees.csproj
    Unable to resolve 'Microsoft.NETCore.App (>= 3.1.0)' for '.NETCoreApp,Version=v3.1'.
Errors in E:\TFS_Agents2017\....\s\EmployeesEF\EmployeesEF.csproj
    Unable to resolve 'Microsoft.NETCore.App (>= 3.1.0)' for '.NETCoreApp,Version=v3.1'.
Errors in E:\TFS_Agents2017\...\s\UnitTests\abcUnitTests.csproj
    Unable to resolve 'Microsoft.NETCore.App (>= 3.1.0)' for '.NETCoreApp,Version=v3.1'.
Errors in E:\TFS_Agents2017\...\s\askldf\asdfasdf.UnitTests.csproj
    Unable to resolve 'Microsoft.NETCore.App (>= 3.1.0)' for '.NETCoreApp,Version=v3.1'.)
Packages failed to restore

我错过了什么,我需要添加任何其他步骤吗?

我们在代理信息中看不到 .NET Core SDK 版本 3.1.0。 Please run the cmd dotnet –info to check your local .NET Core SDK version and Runtime version, then open the build definition and add the task .NET Core SDK and .NET Core restore to restore the package. 在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM