DOTNET_HOST_PATH is not set code example Example: The "RazorTagHelper" task failed unexpectedly. setx DOTNET_HOST_PATH "%ProgramFiles%\dotnet\dotnet.exe"