VS 2017 RC:我无法在Nuget中更新NETStandard.Library

编程入门 行业动态 更新时间:2024-10-26 22:27:47
本文介绍了VS 2017 RC:我无法在Nuget中更新NETStandard.Library的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

从最近一次(或最后两次更新)开始,我无法在Nuget中更新NETStandartLibrary软件包。 我只是创建一个新的标准库项目。看到此消息:

From the last (or maybe the two last) update, I can't update the package NETStandartLibrary in Nuget. I just create a new standard library project. See this message :

在项目属性中,版本不同:

In project's properties, the version is different :

在.csproj中:

<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netstandard1.4</TargetFramework> </PropertyGroup> </Project>

在Nuget中,我添加了依赖项 Microsoft.EntityFrameworkCore,然后得到警告:

In Nuget, I add the dependency 'Microsoft.EntityFrameworkCore', then I got the warning :

警告检测到软件包降级:NETStandard.Library从1.6.1降到 1.6.0 AgainTest(> = 1.0.0)-> Microsoft.EntityFrameworkCore(> = 1.1.0)-> NETStandard.Library(> = 1.6.1)AgainTest(> = 1.0.0)-> NETStandard.Library(> = 1.6.0)

Warning Detected package downgrade: NETStandard.Library from 1.6.1 to 1.6.0 AgainTest (>= 1.0.0) -> Microsoft.EntityFrameworkCore (>= 1.1.0) -> NETStandard.Library (>= 1.6.1) AgainTest (>= 1.0.0) -> NETStandard.Library (>= 1.6.0)

我在项目的属性中选择了高版本,但警告仍在继续。

I select the high version in the project's property, but the warning continue.

  • 所有这些版本号是什么?
  • 如何解决此警告?
推荐答案

您不能从GUI更改此内容,因为此包是从TargetFramework定义的隐含性。要更改NETStandard.Library软件包的版本,请将以下内容添加到csproj文件中。

You can't change this from the GUI because this package is impliclity defined from your TargetFramework. To change the version of NETStandard.Library package, add the following to your csproj file.

<PropertyGroup> <NetStandardImplicitPackageVersion>1.6.1</NetStandardImplicitPackageVersion> </PropertyGroup>

更多推荐

VS 2017 RC:我无法在Nuget中更新NETStandard.Library

本文发布于:2023-11-14 08:59:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586783.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:RC   Nuget   Library   NETStandard

发布评论

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

>www.elefans.com

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