I added VNext class library to ASp.Net 5 project, and I'm trying to add Nuget package "Npsql":
But it can't compile, what I'm doing wrong?
I added VNext class library to ASp.Net 5 project, and I'm trying to add Nuget package "Npsql":
But it can't compile, what I'm doing wrong?
The problem is that when you add the dependency to all TFMs (dnx451
and dnxcore50
). Mostly sure, Npgsql
doesn't support dnxcore50
(CoreCLR).
You have 3 solutions:
dnxcore50
completelydnx451
#if DNX451
conditional compilation blocks in your code