I have upgraded a asp net core wep app from 1.x to 2 and it all runs OK through visual studio and I have installed . net core 2 runtime on windows server 2012 (where app is deployed), but when I publish the app i'm getting this error :
Error The command ""bin\Release\net461\win7-x86\Microsoft.AspNetCore.Mvc.Razor.ViewCompilation-x86.exe" @"obj\Release\net461\win7-x86\microsoft.aspnetcore.mvc.razor.viewcompilation.rsp"" exited with code 1. WebApp 0