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

编程入门 行业动态 更新时间:2024-10-27 00:22:50
本文介绍了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 中:

And in the .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:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586782.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:RC   Nuget   Library   NETStandard

发布评论

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

>www.elefans.com

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