Microsoft.NET.Sdk and Visual Studio 2022 version 17.4.1

Eigil Krogh Sorensen 76 Reputation points
2022-11-25T10:30:33.207+00:00

I have a (very) old xamarin solution.

Now suddenly Visual Studio 2022 version 17.4.1 can't load the .dll part of the solution. It throws the error (shown below).

What can I do to solve that problem ?

The error message
SDK Resolver Failure: ’The SDK resolver ’Microsoft.DotNet.MSBuildSdkResolver’ failed while attempting to resolve the SDK ’Microsoft.NET.Sdk’. Exception: ’ Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadManif estCompositionException: Workload definition wasm-tools’ in manifest microsoft.net.workload.mono.toolchain' [C:\Program
Files\dotnet\sdk-manifests\7.0.100\microsoft.net.workload.mo no.toolchain\WorkloadManifest.json] conflicts with manifest microsoft.net.workload.mono.toolchain.net7' [C:\Program Files\dotnet\sdk-manifests\7.0.100\microsoft.net.workload.mo no.toolchain.netAWorkloadManifest.json] at
Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolv er.ComposeWorkloadManifestsQ
at
Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolv er.Create(IWorkloadManifestProvider manifestProvider, String dotnetRootPath, String sdkVersion, String userProfileDir) at
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.CachingWor kloadResolver.Resolve(String sdkReferenceName, String dotnetRootPath, String sdkVersion, String userProfileDir) at
Microsoft.DotNet.MSBuildSdkResolver.DotNetMSBuildSdkRes olver.Resolve(SdkReference sdkReference, SdkResolverContext context, SdkResultFactory factory)
at
Microsoft.Build.BackEnd.SdkResolution.SdkResolverService.Try ResolveSdkUsingSpecifiedResolvers(IList'1 resolvers, Int32 submissionld, SdkReference sdk, Loggingcontext loggingcontext, ElementLocation sdkReferenceLocation, String solutionPath, String projectPath, Boolean interactive, Boolean isRunninglnVisualStudio, SdkResult& sdkResult)" D:\Users\eigil\projects\xamarinProjs\TimeDateCalculator\Time DateCalculator\TimeDateCalculator\TimeDateCalculatorDll.csp roj

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
{count} votes