swaggerwcf only works with newtonsoft 8.0.3.0 in a multiproject solution

126 Views Asked by At

I am working in a multiproject solution. There's a main project and the rest is referenced (as existing projects).

In two projects I had newtonsoft 9.0.1.0, then we decided to integrate swaggerwcf in one of the projects (that has newtonsoft). I intalled the nugget package for swaggerwcf, but when I tried to go to "/api-docs", I received an error(something like request couldnt be proccess), then I decided to downgrade the version of newtonsoft to 8.0.3.0(it's the minimum version admited by swaggerwcf) and it works but I want to use newtonsoft 9.0.1.0 in both projects.

Suaggerwcf only works with the minimun version of newtonsoft 8.0.3.0. in this solution. I've tried in other solutions(with one project) and works with other versions of newtonsoft.

1

There are 1 best solutions below

1
mxmissile On

According to nuget, 8.0.3 and newer should work. If you have not, try adding a binding redirect as described in this blog post. Go to the Package Manager Console for your project and use the Add-BindingRedirect command.