Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netstandard.Library 1.6.1 blocked by project

I've created a brand new solution and project in VS2017 RC and for some reason I can't use the latest version of the NETStandard.Library package.

There's no code in the project and it's the first project in the solution.

When in the NuGet package manager it's listed in the dropdown, but marked as blocked by project.

Any ideas?

like image 526
RubbleFord Avatar asked Feb 18 '17 06:02

RubbleFord


2 Answers

You need to execute the command in Package manager console for your project Install-Package NETStandard.Library

like image 162
Иван Салдаев Avatar answered Nov 10 '22 21:11

Иван Салдаев


The NETStandard.Library package is no longer meant to be upgradable through the package management UI. The "SDK" component of the project emits this reference automatically and marked read-only.

This behaviour can be overridden through a property in the csproj file:

<NetStandardImplicitPackageVersion>1.6.1</NetStandardImplicitPackageVersion>

If you delete a line like this from your csproj file, you'll get the newest version that VS or the CLI knows about.

This property is usually added when migrating from project.json to csproj. In this case, you can safely remove it.

like image 44
Martin Ullrich Avatar answered Nov 10 '22 21:11

Martin Ullrich