I\'ve installed the newly released version of Visual Studio 2017 and started a fresh ASP.NET Core project targeting .NET Core.
Out of the box, I\'m getting the
For me the problem was caused by my project having a custom IntermediateOutputPath
. For some reason, if project_name.csproj.nuget.g.targets
is not in obj
subfolder of project folder, the error occurs.
Using default IntermediateOutputPath
or keeping a shadow copy of project_name.csproj.nuget.g.targets
in fake obj
folder solves the problem for me.