There are a bit confusing information about the backward referencing possibility from .net core applications (e.g. ASP.Net Core) to the commonly used .net framework libraries. I got the following impression now:
- If you are using "netcoreapp1.0", then you cannot reference an ordinary library at all.
- If you are using e.g. "net451", then you can reference it, but you have to wrap it first in a nuget package with corresponding tag.
Does this sound correct?
P.S. I was thinking that perhaps in case 1 decompiling to IL and recompiling back as "netcoreapp1.0" or "netstandard1.6" or some other voodoo can help?
P.P.S. As mentioned in comments it's possible to reference ordinary class library project that can in turn reference the library, but that will mean you have to wrap everything that is in the library, so depends a lot if this can be used.
For the moment this is not possible.
You have 3 options:
EDIT on 20-03-2017 : Just came across this post: It seems now possible to have your .NET Core app target .NET 4.6 by changing the .csproj, UNTESTED (yet)
to
then
dotnet restore
followed bydotnet run