相关疑难解决方法(0)

VSTS构建:软件包无法恢复 - 无法为".NETStandard,Version = v2.0"解析"NETStandard.Library(> = 1.6.1)"

我越来越

无法为'.NETStandard,Version = v2.0'解析'NETStandard.Library(> = 1.6.1)'.

在我将aspnetcore应用程序升级到netcoreapp2.0我的库并使用之后,使用Hosted2017构建代理构建VSTS netstandard2.0.

在当地工作正常.

我编辑了我的构建定义以使用.net核心构建任务v2.* preview:

构建定义细节

这是构建日志:

Current agent version: '2.120.2'
Download all required tasks.
Downloading task: DotNetCoreCLI

Starting: Get Sources
Syncing repository: Liero/vyvojari-sk (GitHub)
...details ommited
HEAD is now at e448a25... Upgraded to .NET Core 2.0
Finishing: Get Sources

Starting: Restore
==============================================================================
Task         : .NET Core
Description  : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated …
Run Code Online (Sandbox Code Playgroud)

.net-core azure-devops azure-pipelines .net-core-2.0 .net-standard-2.0

20
推荐指数
1
解决办法
2万
查看次数