[Breaking change]: Projects using certain workloads don't load, build, and or run if .NET 7 Preview SDK workloads are installed: #32814
Labels
binary incompatible
Existing binaries may encounter a breaking change in behavior.
breaking-change
Indicates a .NET Core breaking change
🏁 Release: .NET 7
Work items for the .NET 7 release
doc-idea
Indicates issues that are suggestions for new topics [org][type][category]
Pri1
High priority, do before Pri2 and Pri3
📌 seQUESTered
Identifies that an issue has been imported into Quest.
source incompatible
Source code may encounter a breaking change in behavior when targeting the new version.
Description
This is documented already as a known issue. https://github.com/dotnet/core/blob/main/release-notes/7.0/known-issues.md#70-projects-using-certain-workloads-dont-load-build-and-or-run-if-net-7-preview-sdk-workloads-are-installed
If a preview .NET 7 SDK is installed alongside the RTM NET 7, projects with workload dependencies such as microsoft.net.workload.mono.toolchain may fail to build, load, and or run, with errors such as:
Version
.NET 7
Previous behavior
The builds, loading, and running of these projects would work fine.
New behavior
The builds, loading, or running of these projects will fail until the user takes one of the recommended actions.
Type of breaking change
Reason for change
NET 7 Preview 4+ SDKs are incompatible with RTM 7 because the mono.toolchain workload was renamed.
Recommended action
Uninstall any .NET 7 preview SDKs. For detailed instructions, see dotnet uninstall instructions. For example, on Windows, dotnet preview SDKs can be uninstalled with add/remove programs.
And OR
Deleting the folder C:\Program Files\dotnet\sdk-manifests\7.0.100\microsoft.net.workload.mono.toolchain, but this will only work for file-based installs. Dotnet-core-uninstall is another option for uninstalling the .NET 7 preview SDKs.
Feature area
SDK
Affected APIs
No response
Associated WorkItem - 45469
The text was updated successfully, but these errors were encountered: