Error MSB4019 The imported project “C:\Program Files\dotnet\sdk\1.0.0-rc4-004771\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props” was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. MyProject C:\Users\Paul\documents\visual studio 14\Projects\MyProject\Myproject\MyProject.xproj
This issue, on initial investigation, looks like a problem with the VS Tools location (defined here in the xproj):
<Import Project="$(VSToolsPath)\\DotNet\\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
However, the fix was in the new file Global.json:
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-preview2-003131"
}
}
When the project was migrated to VS2017, the global.json was changed to look like this:
{"projects":["src","test"]}
So it looks like MS are moving away from the idea of these external project / solution state definition files. Which is a shame, because I really thought they were a good idea.
References