vs 2022和2019中的错误加载项目Microsoft.dotnet.msbuildsdkresolver

发布于 2025-01-23 20:55:10 字数 1206 浏览 0 评论 0原文

当我加载Web项目时,就会发生这种情况。有人遇到过吗?有一天它正在工作,现在没有更新或其他任何

SDK解析器故障:“ SDK解析器 “ Microsoft.dotnet.msbuildsdkresolver”试图尝试失败 解决SDK“ Microsoft.net.sdk.web”。例外: “ system.runtime.interopservices.sehexception(0x80004005):外部 组件抛出了例外。在 microsoft.dotnet.nativewrapper.interop.windows.hostfxr_resolve_sdk2(字符串 exe_dir,字符串work_dir,hostfxr_resolve_sdk2_flags_t flags, hostfxr_resolve_sdk2_result_fn结果) microsoft.dotnet.nativewrapper.netcoresdkresolvernativewrapper.resolvesdk(字符串 dotnetexedirectory,字符串globaljsonStartDirectory,boolean 禁止发行) Microsoft.dotnet.dotnetsdkresolver.netcoresdkresolver.resolvenetcoresdkdirectory(String GlobaljsonStartdir,版本msbuildversion,布尔值 IsrunnunninvisualStudio,字符串dotnetexedir) microsoft.dotnet.msbuildsdkresolver.dotnetmsbuildsdkresolver.strovel(sdkreference sdkreference,sdkresolvercontext上下文,sdkresultfactory工厂)
在 microsoft.build.backend.sdkresolution.sdkresolverservice.resolvesdk(int32 提交,SDKReference SDK,LoggingContext loggingContext, ElementLocation SDKReferenceLocation,字符串解决方案路径,字符串 Project Path,Boolean Interactive,Boolean Isrunninginvisualstudio)“” c:\ dev \ s3.core \ s3.core \ s3.core.web.controlcenter \ s3.core.web.controlcenter.csproj

This happens when I load a web project. Anyone run into this before ? One day it was working and now its not no updates or anything

SDK Resolver Failure: "The SDK resolver
"Microsoft.DotNet.MSBuildSdkResolver" failed while attempting to
resolve the SDK "Microsoft.NET.Sdk.Web". Exception:
"System.Runtime.InteropServices.SEHException (0x80004005): External
component has thrown an exception. at
Microsoft.DotNet.NativeWrapper.Interop.Windows.hostfxr_resolve_sdk2(String
exe_dir, String working_dir, hostfxr_resolve_sdk2_flags_t flags,
hostfxr_resolve_sdk2_result_fn result) at
Microsoft.DotNet.NativeWrapper.NETCoreSdkResolverNativeWrapper.ResolveSdk(String
dotnetExeDirectory, String globalJsonStartDirectory, Boolean
disallowPrerelease) at
Microsoft.DotNet.DotNetSdkResolver.NETCoreSdkResolver.ResolveNETCoreSdkDirectory(String
globalJsonStartDir, Version msbuildVersion, Boolean
isRunningInVisualStudio, String dotnetExeDir) at
Microsoft.DotNet.MSBuildSdkResolver.DotNetMSBuildSdkResolver.Resolve(SdkReference
sdkReference, SdkResolverContext context, SdkResultFactory factory)
at
Microsoft.Build.BackEnd.SdkResolution.SdkResolverService.ResolveSdk(Int32
submissionId, SdkReference sdk, LoggingContext loggingContext,
ElementLocation sdkReferenceLocation, String solutionPath, String
projectPath, Boolean interactive, Boolean isRunningInVisualStudio)""
C:\dev\S3.Core\S3.Core\S3.Core.Web.ControlCenter\S3.Core.Web.ControlCenter.csproj

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜中书 2025-01-30 20:55:10

我做了一些事情来搞砸我的启动集。我恢复了它,它修复了一切

I had done something to screw up my launchsettings.json. I reverted it and it fixed everything

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文