检测到包降级警告(dotnet core,vs 2017)

Detected package downgrade warning (dotnet core, vs 2017)(检测到包降级警告(dotnet core,vs 2017))
本文介绍了检测到包降级警告(dotnet core,vs 2017)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为我的解决方案(dotnet core 1.1 项目)更新了所有 nuget 包.

I have just updated all my nuget packages for my solution (dotnet core 1.1 project).

我现在收到以下警告,但我真的不知道它们是什么意思.

I am now getting the following warnings and I don't really know what they mean.

更新:我仍然收到上述警告.我的 web 项目警告 Microsoft.NETCore.App 包(见下面的截图),我的 lib 项目警告 NETStandard.Library(见上面的截图)

Update: I am still getting warnings mentioned above. My web projects warn about the Microsoft.NETCore.App package (see screenshot below) and my lib projects warn about NETStandard.Library (see screenshot above)

尝试在 NuGet 包管理器中更新 Microsoft.NETCore.App 时,我收到以下错误:

When trying to update Microsoft.NETCore.App in the NuGet package manager, I am getting the following error:

希望有人可以帮助我摆脱这些警告并设置应有的一切,以便我可以更新我的所有软件包.

Hope someone can help me get rid of those warnings and setup everything it is meant to be, so I can update all my packages.

推荐答案

根据上面的答案,工作解决方案是从您的 csproj 文件中删除以下行.

As per answer above the working solution is to remove the following line from your csproj file.

网络应用项目:

<RuntimeFrameworkVersion>1.0.4</RuntimeFrameworkVersion>

Lib 项目:

<NetStandardImplicitPackageVersion>1.6.0</NetStandardImplicitPackageVersion>

这篇关于检测到包降级警告(dotnet core,vs 2017)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
quot;Overflowquot; compiler error with -9223372036854775808L(编译器错误-9223372036854775808L(Q;溢出Q))
Visual Studio 2010 ReportViewer Assembly References(Visual Studio 2010 ReportViewer程序集引用)
Weird behaviour when I open a reportviewer in WPF(在WPF中打开报表查看器时出现奇怪的行为)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)