VS2022 Preview 4 Cannot Load Blazor Project

Amjad Khan 21 Reputation points
2021-09-15T02:18:26.723+00:00

I just upgraded to VS2022 Preview 4. Now when I load my Blazor project, I get the following error:

error : The project file cannot be opened. The SDK resolver "Microsoft.DotNet.MSBuildSdkResolver" failed to run. Could not find file 'C:\Program Files\dotnet\sdk-manifests\6.0.100\microsoft.net.sdk.macos\WorkloadManifest.json'.

I am not even using MacOS. I am Windows and on Preview 3 I had no issues.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,462 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,793 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Neil Burrows 6 Reputation points
    2021-09-15T09:08:57.367+00:00

    Removing the preview version of .net 6 from teh Add/Remove programs, and then downloading and installing the RC1 version from https://dotnet.microsoft.com/download/dotnet/6.0 created the missing files and got things working for me again.

    1 person found this answer helpful.

  2. Amjad Khan 21 Reputation points
    2021-09-15T09:20:41.07+00:00

    I installed the .NET 6 RC1 SDK and created a new project. Then loaded my older project and it seems to be working now. I don't if installing .NET 6 SDK is required from my .NET 5 project to work in the new VS2022.

    0 comments No comments