Repository navigation
Dynamically downgrade bundled framework versions - #8610
Merged
mthalman merged 2 commits intoAug 26, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 67299433-dbf0-4823-a515-210b1b6bbe54
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Linux installer scenario-test setup to avoid hardcoded framework bands by dynamically discovering serviced framework versions from LatestRuntimeFrameworkVersion entries and downgrading each eligible version in the SDK’s Microsoft.NETCoreSdk.BundledVersions.props, preventing restores from requesting unpublished packs.
Changes:
- Updated the installer tests’ comments/Dockerfile generation text to reflect the new “serviced framework versions” behavior.
- Enhanced
downgrade-fx-versions.shto discover applicable .NET major/minor versions dynamically and apply the downgrade per discovered version. - Updated the script’s verification output to iterate over discovered versions.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| test/Microsoft.DotNet.Installer.Tests/LinuxInstallerTests.cs | Updates test comments/Dockerfile text to align with the new dynamic downgrade behavior. |
| test/Microsoft.DotNet.Installer.Tests/assets/downgrade-fx-versions.sh | Dynamically discovers serviced versions via LatestRuntimeFrameworkVersion and downgrades each eligible version. |
Suppressed comments (1)
test/Microsoft.DotNet.Installer.Tests/assets/downgrade-fx-versions.sh:117
- The verification grep pattern also interpolates the version string without escaping '.', which makes '.' match any character and can produce misleading output. Escape the version before building the regex.
for version in "${dotnet_versions[@]}"; do
echo "${version} versions in file:"
grep -oP "${version}\.\d+" "$PROPS_FILE" | sort -u
echo ""
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 67299433-dbf0-4823-a515-210b1b6bbe54
akoeplinger
approved these changes
Aug 26, 2026
Member
Author
|
/backport to release/11.0.1xx |
Contributor
|
Started backporting to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Installer scenario tests only downgraded bundled .NET 8 and 9 framework versions. When .NET 10 servicing versions advanced beyond publicly available packages, restore requested unpublished targeting, runtime, and host packs and failed with
NU1102.Solution
Discover serviced framework versions dynamically from
LatestRuntimeFrameworkVersionentries and downgrade each eligible patch. This removes hardcoded framework versions and automatically handles future releases.