microsoft / MCW-App-modernization

MCW App modernization
MIT License
175 stars 264 forks source link

Issue while deploying web application to Azure #74

Closed tejaswini972 closed 3 years ago

tejaswini972 commented 3 years ago

Exercise 5 Task2 Step6

I am getting this below error after publishing the Contoso.Web web application from Visual studio. Please find the attached screenshot for reference. However it worked when I installed the NuGet pacakge Microsoft.NET.Sdk.Razor.

appmodissue1

We have workshop scheduled this week. Can you please try to fix this asap.

ekuipers commented 3 years ago

This error is due to Visual Studio not able to find the dotnet package for Dotnet Core 2.2 after an upgrade to .NET version 5.

Solution: Add a Windows environment variable to your system settings: DOTNET_HOST_PATH=%ProgramFiles%\dotnet\dotnet.exe