question

AmjadKhan-3554 avatar image
0 Votes"
AmjadKhan-3554 asked AmjadKhan-3554 answered

VS2022 Preview 4 Cannot Load Blazor Project

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.

vs-generaldotnet-aspnet-core-blazor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

NeilBurrows-0270 avatar image
1 Vote"
NeilBurrows-0270 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AmjadKhan-3554 avatar image
0 Votes"
AmjadKhan-3554 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.