I have a project which in turn references a fork of an official nuget'd library (forecast.io). I've arranged my global.json to find my copy of the lib, yet a dotnet restore
still seems to reach out to the official version rather than my fork.
I form this conclusion because I get the error:
Package Forecast.io 1.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Forecast.io 1.0.0 supports: net45 (.NETFramework,Version=v4.5)
One or more packages are incompatible with .NETCoreApp,Version=v1.0.
Yet my fork of forecast.io doesn't even target .NET 4.5 - only "net40" and "netcoreapp1.0".
How can I ensure that my local fork is used instead?
Here's my global.json
{
"projects": [
"../../ext/forecast.io-csharp/src/Forecast.io",
"MyOtherLibRefWhichWorks",
"MyPrimaryProject"
]
}
And a snippet from project.json from primary project:
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0-rc2-3002702"
},
"MyOtherLibRefWhichWorks": "1.0.0-*",
"Forecast.io": "1.0.0-*",
EDIT: It seems like global.json goes completely ignored. It's located one directory above where the project.json is located..