簡體   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