Nancy.Serialization.JsonNet icon indicating copy to clipboard operation
Nancy.Serialization.JsonNet copied to clipboard

Support for dotnet core?

Open rogusdev opened this issue 7 years ago • 3 comments

yo aspnet nancy Test
cd Test
dotnet add package Nancy.Serialization.JsonNet

error: Package Nancy.Serialization.JsonNet 1.4.1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Nancy.Serialization.JsonNet 1.4.1 supports: net40 (.NETFramework,Version=v4.0)
error: One or more packages are incompatible with .NETCoreApp,Version=v1.0.
error: Package 'Nancy.Serialization.JsonNet' is incompatible with 'all' frameworks in project '/home/chris/git/NANCY/Test/Test.csproj'.

And I'd love it to be compatible with netcoreapp1.1 as well even. I don't know how to go about fixing this or else I'd gladly make the PR myself -- feel free to just point me in the right direction if that will get this resolved faster.

rogusdev avatar Jun 04 '17 22:06 rogusdev

Looks like I should just move up to dotnet add package Nancy.Serialization.JsonNet --version 2.0.0-clinteastwood however when I do that, I get a strange error on dotnet restore:

error NU1605: Detected package downgrade: Nancy from 2.0.0-clinteastwood to 2.0.0-clienteastwood. Reference the package directly from the project to select a different version.
Nancy.Serialization.JsonNet 2.0.0-clinteastwood -> Nancy (>= 2.0.0-clinteastwood)
error NU1605:  PROJECT -> Nancy (>= 2.0.0-clienteastwood)

Any idea what's up with that?

Thanks.

rogusdev avatar Nov 25 '17 18:11 rogusdev

Any update on this issue?

drogars avatar Jun 13 '18 16:06 drogars

I don't remember exactly what I did for this specific concern, but if it helps you at all, I do have a demo project where I use JSON in Nancy (using Newtonsoft.Json directly): https://github.com/rogusdev/docker_heroku_dotnet

rogusdev avatar Jun 17 '18 05:06 rogusdev