admin管理员组文章数量:1122832
Installing .NET SDK v8.0.404 breaks the .NET installation and prevents building apps or opening projects in IDEs like Rider.
In the terminal, you may see an error like this:
/usr/share/dotnet/sdk/8.0.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.props(14,38): error MSB4242: SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" failed...
Installing .NET SDK v8.0.404 breaks the .NET installation and prevents building apps or opening projects in IDEs like Rider.
In the terminal, you may see an error like this:
/usr/share/dotnet/sdk/8.0.404/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.props(14,38): error MSB4242: SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" failed...
Share
Improve this question
asked Nov 22, 2024 at 15:49
MaximMaxim
13.4k6 gold badges34 silver badges47 bronze badges
1 Answer
Reset to default 0This issue occurs because Microsoft missed something in their package for your OS (I tested on openSUSE).
To resolve it, follow these steps:
Go to the .NET installation directory and locate a path like the following:
/usr/share/dotnet/sdk-manifests/8.0.100/workloadsets
There should be a directory corresponding to the latest .NET 8 version. For now it is
8.0.404-baseline.24523.81
. Inside this directory, you can find the filebaseline.workloadset.json
.Delete all directories that do not contain such file, in my case it is:
/usr/share/dotnet/sdk-manifests/8.0.100/workloadsets/8.0.401-baseline.24412.2
/usr/share/dotnet/sdk-manifests/8.0.100/workloadsets/8.0.402-baseline.24467.1
These directories were most likely not cleaned up after upgrading to dotnet-sdk-8.0.804.
本文标签: netBuild on Linux is failed after updating to dotnetsdk80 (80404)Stack Overflow
版权声明:本文标题:.net - Build on Linux is failed after updating to dotnet-sdk-8.0 (8.0.404) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736302584a1931587.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论