Closed livarcocc closed 8 years ago
This is a known issue that is caused by an invalid framework portable-net45+wp80+win8+wpa81+dnxcore50
in the newtonsoft.json package. NuGet will favor valid frameworks, in this case that is portable-net40+sl5+wp80+win8+wpa81
.
You can work around this by adding dnxcore50 as your first import.
Repro at this branch: https://github.com/livarcocc/nuget_repro.
Just run:
dotnet restore --infer-runtimes dotnet test
Result:
Expected:
Tests to run successfully.
This fails because newtonsoft.json has the below and nuget is picking portable-net40 instead of the better one which is portable-net50
cc @ericstj