Reputation: 71
I have the following issue in my API where the code is running ok when i try to run it in local host, however when i try to publish it, this error comes up Help!!
Error The command ""dotnet" exec --runtimeconfig "~\xxxx-api\API.xxxx\bin\Release\netcoreapp2.0\API.xxxx.runtimeconfig.json" --depsfile "~\xxxx-api\API.xxxx\bin\Release\netcoreapp2.0\API.xxxx.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. API.xxxx 0
Upvotes: 4
Views: 2645
Reputation: 1
I installed this package under "Get Tools and Features" > "Individual Components" tab, "Cloud, Database, and Server" (heading) > "Web Deploy" Checkbox Option:
Upvotes: 0
Reputation: 311
Just in case someone has the same problem:
Add this line o code on csproj:
<ProperyGroup>
...
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
</ProperyGroup>
https://github.com/aspnet/Mvc/issues/6659
https://github.com/aspnet/Mvc/issues/7393
Upvotes: 5
Reputation: 3283
Remove the following file:
privateregistry.user.bin
Located in
C:\Users\[UserId]\AppData\Local\Microsoft\VisualStudio\15.0_[UniqueCode]
No need to restart computer, now Visual Studio 2017 starts successfully.
Upvotes: -3