visual studio 2015 - Referencing .NET Core classLib nuget in aspnetCore webapp -


i building .net core nuget package in .net core 1.1 library using vs2017

i need reference in vs2015 solution - .net-core webapp targetting .net framework library (fwk 4.6.2) however, when add reference of nuget below issue. pointers solve appreciated.

package classlibnetcore 1.0.0 not compatible net462 (.netframework,version=v4.6.2). package classlibnetcore 1.0.0 supports: netcoreapp1.1 (.netcoreapp,version=v1.1) 1 or more packages incompatible .netframework,version=v4.6.2. 

this error message remains same (fwk version in msg changes) if nuget created .net-standard library.

a .net framework project cannot use .net core library. create library can used .net framework , .net core application, library needs target .net standard. see https://docs.microsoft.com/en-us/dotnet/standard/net-standard more information on .net standard.

the tooling in vs 2015 (project.json based) lets use .net standard 1.5 libraries in .net 4.6.2 projects, if change library targeting netcoreapp1.1 netstandard1.5, able use both in .net framework 4.6.2+ , .net core 1.0+ projects.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -