How does ASP.NET CORE project in a VS2015 solution (VS2015 with update 3) resolve references to other .Net Core library projects in the same solution (see project structure below)? Local developer running VS2015 does not have any issues but “Visual Studio Build” step on VSTS fails to reference the correct version of .Net Core Libraries.
(all projects are part of the same solution but different folders on the hard drive)
MySolution.sln__contains__My .NET CORE Library Project#1"
MySolution.sln__contains__My .NET CORE Library Project#2"
MySolution.sln__contains___CORE project__Referencing Project#1 and Project#2"
This is how the other projects are referenced in the project.json file:
"dependencies": {
"LibraryProject1": "1.0.1-*",
"LibraryProject2": "1.0.1-*",
}
For now, to make it work I have to change the version number for each .Net core library to make sure the solution build step on VSTS picks up the right version.
Again, developers don't run into this issue.
There should be a
global.json
file in the solution root folder. And itsprojects
section is what you are looking for (from doc):