Dotnet compliation error; aspnetcore.mvc.razor.viewcompliation.rsp exited with code 1

Viewed 2150

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

  • names are crossed out due to company policy :(
3 Answers

I installed this package under "Get Tools and Features" > "Individual Components" tab, "Cloud, Database, and Server" (heading) > "Web Deploy" Checkbox Option:

enter image description here

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.

Related