Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Compatible versions of Visual Studio projects targeting netstandard nuget packages #241

Closed
BennieCopeland opened this issue Mar 13, 2017 · 7 comments

Comments

@BennieCopeland
Copy link

Is there any documentation on which previous versions of Visual Studio solutions/projects can utilize nuget packages targeting only netstandard? By adopting netstandard, are we also dropping support for any Visual Studio version prior to 2015?

@weshaggard
Copy link
Member

VS 2015 had some minimal support for .NET Standard projects via the old PCL projects, however the recommended projects are base .NET Core tooling that ships only with VS2017 so yes in order to create .NET Standard libraries it would require VS2017. You will be able to consume one in earlier version of VS but not produce one.

@BennieCopeland
Copy link
Author

BennieCopeland commented Mar 15, 2017 via email

@weshaggard
Copy link
Member

For consuming the a nuget package that contains a netstandard library all you need is the updated nuget client. I believe the nuget team is still actively maintaining the nuget client down to VS2013. However you could always run the nuget restore from the command line with the latest nuget.exe if necessary as well.

@tmenier
Copy link

tmenier commented Jul 17, 2017

FWIW: The netstandard moniker was introduced in NuGet 3.4, which shipped with Visual Studio 2015 Update 2. The only available package manager for Visual Studio 2013 supports NuGet 2.12. Hence, you cannot consume netstandard packages via the Package Manager in VS2013 and earlier. (You can, obviously, still use the NuGet CLI tool.)

@weshaggard
Copy link
Member

@emgarten can correct me if I'm wrong but I though the older nuget version also nows about netstandard.

@emgarten
Copy link
Member

NuGet 2.12 has netstandard support. You can find it here: http://dist.nuget.org/

@tmenier
Copy link

tmenier commented Jul 17, 2017

Ah, my mistake.

https://docs.microsoft.com/en-us/nuget/release-notes/nuget-2.12

Thanks for clarifying!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants