c# - can nuget packages compiled against .net4.5 be referenced by dnxcore50 -
i'm compiling application targets dnxcore50 only.
i'm attempting reference nuget package know works fine when run against dnx451. when dnx . run get:
system.invalidoperationexception: failed resolve following dependencies target framework 'dnxcore,version=v5.0':
it suggests dnu restore package there
it not work package under circumstances (if any) ?
in order work must package manager build version compiled against dnxcore50?
update
this chart makes things bit clearer (copied here)
no. dnxcore50 indicates you're running on dnx on top of .net core. assemblies can load in .net core target compatible profile, in case e.g. dnxcore50, dotnet, or 1 of compatible portable profiles.
if have assembly compiled against full .net framework (via net45, net451, etc.), won't run when on .net core same apis aren't available.

Comments
Post a Comment