I have a .Net Core 2.0 solution that has been working great for a few months now. I am ready to make another push and let people look at it. Builds and runs great locally, however, I am unable to publish it (to Azure or even Locally - so it is not an Azure issue) anymore. The only real significant change was upgrading to Visual Studio 15.4.3 since my last push.
This is the error:
Severity Code Description Project File Line Suppression State Error The command ""dotnet" exec --runtimeconfig "C:\Avantia Projects\Time Card\avantia-timesheet\Solution\Almanac\bin\Release\netcoreapp2.0\Avantia.Almanac.runtimeconfig.json" --depsfile "C:\Avantia Projects\Time Card\avantia-timesheet\Solution\Almanac\bin\Release\netcoreapp2.0\Avantia.Almanac.deps.json" "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.viewcompilation\2.0.0\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.dll" @"obj\Release\netcoreapp2.0\microsoft.aspnetcore.mvc.razor.viewcompilation.rsp"" exited with code 1. Almanac C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.viewcompilation\2.0.0\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.targets 60
I have read many articles out there, mostly saying to delete the bin
and obj
folders. Which I have in all three projects within the solution. I then did a dotnet restore
and again, everything builds and runs locally but will not Publish successfully.
This was originally written in 1.x and converted to 2.0 but that conversion took place when 2.0 RTM came out many publishes ago.