visual studio 2022 F5调试编译.net6 项目报错,更新vs到最新即可原创
11人赞赏了该文章
1,513次浏览
编辑于2022年03月14日 15:55:28
visual studio 2022 F5调试编译.net6 项目报错,需求更新visual studio 202,这样.net SDK版本就能同步到最新 E:\todo\output\code\ESBToK3Cloud\HansWebApi\HansWebApi.csproj : error MSB4242: SDK 解析程序失败: "尝试解析 SDK "Microsoft.NET.Sdk.Web" 时, SDK 解析程序 "Microsoft.DotNet.MSBuildWorkloadSdkResolver" 失败。异常: "Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadManifestCompositionException: 工作负荷清单依赖项“Microsoft.NET.Workload.Emscripten”版本“6.0.0”低于清单“6.0.0-rc.2.21474.1” 所需的版本“microsoft.net.workload.mono.toolchain” [C:\Program Files\dotnet\sdk-manifests\6.0.200\microsoft.net.workload.mono.toolchain\WorkloadManifest.json] E:\todo\output\code\ESBToK3Cloud\HansWebApi\HansWebApi.csproj : error MSB4242: at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.ComposeWorkloadManifests() E:\todo\output\code\ESBToK3Cloud\HansWebApi\HansWebApi.csproj : error MSB4242: at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.Create(IWorkloadManifestProvider manifestProvider, String dotnetRootPath, String sdkVersion, String userProfileDir) E:\todo\output\code\ESBToK3Cloud\HansWebApi\HansWebApi.csproj : error MSB4242: at Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.CachingWorkloadResolver.Resolve(String sdkReferenceName, String dotnetRootPath, String sdkVersion, String userProfileDir) E:\todo\output\code\ESBToK3Cloud\HansWebApi\HansWebApi.csproj : error MSB4242: at Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.WorkloadSdkResolver.Resolve(SdkReference sdkReference, SdkResolverContext resolverContext, SdkResultFactory factory) E:\todo\output\code\ESBToK3Cloud\HansWebApi\HansWebApi.csproj : error MSB4242: at Microsoft.Build.BackEnd.SdkResolution.SdkResolverService.ResolveSdk(Int32 submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, String solutionPath, String projectPath, Boolean interactive, Boolean isRunningInVisualStudio)""