NancyFx / Nancy.Serialization.JsonNet

NewtonSoft.Json serializer for Nancy
MIT License
39 stars 32 forks source link

Support for dotnet core? #66

Open rogusdev opened 7 years ago

rogusdev commented 7 years ago
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 commented 6 years ago

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.

drogars commented 6 years ago

Any update on this issue?

rogusdev commented 6 years ago

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