Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Support for dotnet core? #66

Open
rogusdev opened this issue Jun 4, 2017 · 3 comments
Open

Support for dotnet core? #66

rogusdev opened this issue Jun 4, 2017 · 3 comments

Comments

@rogusdev
Copy link

rogusdev commented Jun 4, 2017

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
Copy link
Author

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
Copy link

drogars commented Jun 13, 2018

Any update on this issue?

@rogusdev
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants