When Build Project. Error The “RazorGenerate” task failed unexpectedly. .Net Core 2.2
got error “ The ”RazorGenerate“ task failed unexpectedly. ” .After Updating to VS 16.8 and upgrade to .net 5.. the core version target is Core 2.2
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Kenil Vasani
The fix for me was to introduce a new System Environment Variable with the Key “DOTNET_HOST_PATH” and the value “dotnet” and then to restart Visual Studio.