Refactor Runtime Identifiers to Support .NET 8 and higher by default #4425
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update refactors the project configuration to exclusively use portable runtime identifiers (
win-x86
,win-x64
,win-arm64
), aligning with .NET 8’s default behavior and eliminating non-portable runtime identifiers (win10-x86
,win10-x64
,win10-arm64
). This change simplifies the setup, reduces maintenance overhead, and prevents the NETSDK1206 warning by removing non-portable RIDs.For new projects targeting .NET 8 or higher, this configuration will work seamlessly. However, users with existing projects targeting .NET 7, using older project templates, and relying on the Microsoft.WinAppRuntime.Bootstrap.dll in unpackaged projects will need to take action. They must change their runtime identifiers to the portable format.