检测到软件包降级警告(dotnet核心,与2017年相比)

编程入门 行业动态 更新时间:2024-10-25 04:14:54
本文介绍了检测到软件包降级警告(dotnet核心,与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.

Web App项目:

Web App project:

<RuntimeFrameworkVersion>1.0.4</RuntimeFrameworkVersion>

库项目:

<NetStandardImplicitPackageVersion>1.6.0</NetStandardImplicitPackageVersion>

更多推荐

检测到软件包降级警告(dotnet核心,与2017年相比)

本文发布于:2023-11-16 09:33:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1603080.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:软件包   检测到   核心   dotnet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!