Repository navigation
Conversation
…0.0; keep 11.0.101 SDK Microsoft.Maui.* 11.0.20 required Microsoft.Extensions.*, ASP.NET Core/Blazor and JSInterop 11.0.1, which are not publicly available yet, so consumer restores fail with NU1102 (VS assessment 3107252). Roll back only those pins to 11.0.0, like #38749 did for 10.0.110. The SDK, toolset, Android and feed changes are unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40606Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40606" |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🔵 Needs a closer look
The release-wide dependency rollback retains a newer SDK, and passing static checks do not replace the still-unverified signed SR2 build and clean MAUI/Blazor consumer restores.
No open issues 🎉
What changed in this PR
This PR addresses the MAUI 11 SR2 consumer restore failure by temporarily reverting runtime and library dependencies to 11.0.0, while retaining the 11.0.101 SDK. It follows the targeted rollback approach used for SR11.
Changes:
- Reverts 26 runtime, Extensions, ASP.NET Core/Blazor, and JSInterop version pins; dependent System packages inherit the runtime rollback.
- Aligns the 26 dependency metadata entries with version
11.0.0and source revisiona586537b. - Leaves SDK, Arcade, Android, feeds, and shared build infrastructure unchanged.
| File | Description |
|---|---|
eng/Versions.props |
Reverts 26 runtime and library version properties to 11.0.0. |
eng/Version.Details.xml |
Updates matching dependency versions and source revisions. |
Review effort: Balanced
| <MicrosoftExtensionsDependencyInjectionVersion>11.0.0</MicrosoftExtensionsDependencyInjectionVersion> | ||
| <MicrosoftExtensionsDependencyInjectionAbstractionsVersion>11.0.0</MicrosoftExtensionsDependencyInjectionAbstractionsVersion> | ||
| <MicrosoftExtensionsFileProvidersAbstractionsVersion>11.0.0</MicrosoftExtensionsFileProvidersAbstractionsVersion> | ||
| <MicrosoftExtensionsLoggingAbstractionsVersion>11.0.0</MicrosoftExtensionsLoggingAbstractionsVersion> |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - This consumer-restore fix has no committed regression test that distinguishes public release dependencies from unpublished servicing packages. IntegrationTestFixture copies the repository NuGet.config, including the servicing darc feeds, and both ordinary MAUI and Blazor template tests restore through that configuration. Those tests can therefore resolve the 11.0.1 dependencies that fail for the reported public-feed consumer. The standalone fixture described in the PR is not committed and tests direct library references rather than the dependency graph emitted by the built MAUI packages. Add a restore regression fixture for ordinary MAUI and Blazor consumers using the built MAUI packages locally, public-release sources for their library dependencies, and an isolated package cache.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Target Branch
mainnet11, for reviewThis is SR2 release work, so it targets
release/11.0.1xx-sr2directly, as #38749 did for SR11 (10.0.110).For .NET 11 fixes, only a maintainer retargets the approved PR to the active
inflight lane and merges it after CI validates that final base. Do not merge
individual fixes directly into
net11; agents must not retarget or merge.Description of Change
The VS assessment for MAUI 11 SR2 (11.0.20), DevDiv 3107252, fails to restore a new MAUI app:
Cause: the SR2 squash of #40407 included the .NET
11.0.101SDK dependency update. That update raised the runtime and library pins from11.0.0to11.0.1.Microsoft.Maui.*11.0.20 therefore depends on11.0.1versions of Microsoft.Extensions.*, ASP.NET Core/Blazor and JSInterop. Those11.0.1packages ship with the December .NET servicing release and are not public yet. This is the same failure as SR11 (#38318, fixed by #38732 and #38749).Fix: roll back only the 26 runtime and library pins in
eng/Versions.props, with their 26 entries ineng/Version.Details.xml, to the SR1 values:11.0.0ata586537b. Packages that inheritMicrosoftNETCoreAppRefPackageVersionfollow: System.Text.Json, System.Text.Encodings.Web, System.CodeDom and Microsoft.Bcl.AsyncInterfaces.The SDK
11.0.101, Arcade, Android,global.json,NuGet.configandeng/commonare unchanged.The rollback is temporary. Restore the
11.0.1pins once those packages are public on NuGet.org.Issues Fixed
Fixes the SR2 consumer restore failure (NU1102) reported in DevDiv assessment 3107252.
Validation
git diff --checkpasses.net11.0fixture referenced all 25 directly pinned packages at exactly11.0.0and restored them from the publicdotnet-publicmirror only. Raising the same fixture to[11.0.1]failed with NU110x, which reproduces the assessment error. This host can't connect to NuGet.org directly.