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
completely dnx451
#if DNX451
conditional compilation blocks in your code
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.