-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Breaking change]: Default Dotnet Tool to Run on Latest Runtime - Build time change RollForward to Major #35267
Comments
According to #34132, we decided to revert the changes as it might imply a change to our compat bar. Currently discussing alternative solutions. Is it possible to revert this breaking change documentation? |
@JL03-Yue So it will only be present in Preview 5 and Preview 6? If so we should probably keep the documentation until GA and then remove it, but we can add a note saying it was reverted in Preview 7. |
@gewarren It'll be present in preview 7 too and reverted in rc1 according to @marcpopMSFT |
Move this to the October/November sprint when those are available. |
Description
#31957
We changed the default RollForward behavior from LatestPatch to Major for dotnet tools.
Version
.NET 8 Preview 5
Previous behavior
Previously, .NET applications use a
runtimeConfig
to determine their runtime. The defaultRollForward
policy isLatestPatch
, which allows an application to run on any runtime of the same major/minor version that is at least as high a version as the application was built against. However, dotnet tools should be able to run on any .NET runtime equal or greater than the application's original runtime, Previously, tool authors must either explicitly set a more flexible roll-forward policy or set multitargeting. The latter has various side effects.New behavior
We could address the mismatch in build time. The new change changes the
RollForward
of all tools fromLatestPatch
toMajor
. This would cause the desired behavior for all newly-built apps.Type of breaking change
Reason for change
#30336
Dotnet tools should be able to run on any .NET runtime equal or greater than the application's original runtime. The previous
RollForward
policy isLatestPatch
, which allows an application to run on any runtime of the same major/minor version that is at least as high a version as the application. We changed the defaultRollForward
policy toMajor
to address this mismatch.Recommended action
N/A
Feature area
SDK
Affected APIs
No response
Associated WorkItem - 97026
The text was updated successfully, but these errors were encountered: