Error: error MSB4236: The SDK ‘Microsoft.NET.Sdk.Razor’ specified could not be found.

Try this fix:
dotnet nuget locals all -c

Other helpful dotnet core commands

  • dotnet restore
  • dotnet build
  • dotnet run (csproj) or dotnet mydll.dll (no run required)
  • dotnet test
  • dotnet publish
  • dotnet pack
  • dotnet new (project or solution)
  • dotnet build-server

Anuj holds professional certifications in Google Cloud, AWS as well as certifications in Docker and App Performance Tools such as New Relic. He specializes in Cloud Security, Data Encryption and Container Technologies.

Initial Consultation

Anuj Varma – who has written posts on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.