小编Kel*_*iro的帖子

构建 azure 管道中某些库的“nuget 恢复”问题

我正在使用 netcoreapp3.1,一切都可以使用命令 dotnet Restore 和 dotnet build 进行,但在构建管道中,使用的命令是 nuget Restore,这会导致以下错误:

 Package Microsoft.AspNetCore.JsonPatch 3.1.1 is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1). Package Microsoft.AspNetCore.JsonPatch 3.1.1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Microsoft.Extensions.Logging.Abstractions 3.0.0 is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1). Package Microsoft.Extensions.Logging.Abstractions 3.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    Package Microsoft.Extensions.DependencyInjection.Abstractions 3.0.0 is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1). Package Microsoft.Extensions.DependencyInjection.Abstractions 3.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    One or more packages are incompatible with .NETCoreApp,Version=v3.1.
Run Code Online (Sandbox Code Playgroud)

c# azure .net-core-3.1

3
推荐指数
1
解决办法
1807
查看次数

标签 统计

.net-core-3.1 ×1

azure ×1

c# ×1