Repository navigation
Update dotnet/dotnet dependency to the latest 10.0.1xx SDK. - #38318
Conversation
This PR is the result of running: ``` $ darc update-dependencies --channel ".NET 10.0.1xx SDK" ```
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38318Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38318" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 Changes recommended
The updated VMR sync scripts will fail in this repo because eng/Version.Details.xml has no <Source> mapping (and the scripts reference undefined repo-root variables), and publishing infra version is hard-coded to 3 despite adding v4 support.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR updates the repo’s .NET 10 dependency set (SDK/toolset and coherency feeds) and refreshes shared eng/common build/pipeline infrastructure that flows with dotnet/dotnet (and related) dependency updates.
Changes:
- Bumps dotnet/dotnet dependency versions (SDK/runtime/Arcade/Helix and related packages) and updates NuGet feeds for coherent restores.
- Updates CI/build templates and tooling scripts (artifact publishing, VMR sync behavior, warning handling, Helix submission/monitoring, SBOM/CG template plumbing).
- Expands cross-build/rootfs & native build support (e.g., OpenBSD/FreeBSD updates, checksum/signature verification, NativeAOT helper targets).
File summaries
| File | Description |
|---|---|
| NuGet.config | Adds dependency-flow managed darc feeds for coherent restores. |
| global.json | Updates pinned .NET SDK/toolset versions. |
| eng/Versions.props | Bumps package version pins for SDK/runtime/Arcade/Helix and related components. |
| eng/Version.Details.xml | Updates dependency SHAs/versions for dotnet/dotnet and dotnet/android. |
| eng/common/vmr-sync.sh | Changes VMR sync flow and adds fallback reset path. |
| eng/common/vmr-sync.ps1 | Changes VMR sync flow and adds fallback reset path (PowerShell). |
| eng/common/tools.sh | Adds MSBuild -mt opt-in and warn-not-as-error support; tweaks toolset restore behavior. |
| eng/common/tools.ps1 | Adds warn-not-as-error support; improves VS requirements probing; adds UseBasicParsing to downloads. |
| eng/common/templates/vmr-build-pr.yml | Updates VMR build PR repo resource endpoint/ref. |
| eng/common/templates/variables/pool-providers.yml | Updates documented Windows pool image reference. |
| eng/common/templates/steps/vmr-sync.yml | Updates VMR sync step token wiring and removes old VMR SHA checkout steps. |
| eng/common/templates/steps/get-github-app-token.yml | Redirects to the core “get GitHub App token” template. |
| eng/common/templates/job/job.yml | Updates public-job behavior (CG skipping) and artifact publishing templates. |
| eng/common/templates-official/variables/pool-providers.yml | Updates documented official pool image reference. |
| eng/common/templates-official/steps/publish-pipeline-artifacts.yml | Adjusts optional sbom/isProduction forwarding behavior. |
| eng/common/templates-official/steps/get-github-app-token.yml | Redirects to the core “get GitHub App token” template (official). |
| eng/common/templates-official/job/job.yml | Updates official artifact publishing outputs and removes SBOM generation wiring. |
| eng/common/template-guidance.md | Removes SBOM template guidance entries. |
| eng/common/post-build/redact-logs.ps1 | Updates dotnet tool install arguments (--source vs --add-source). |
| eng/common/post-build/nuget-verification.ps1 | Adds UseBasicParsing to Invoke-WebRequest. |
| eng/common/native/NativeAotSupported.props | Adds a common property helper for NativeAOT support gating (new). |
| eng/common/native/LocateNativeCompiler.targets | Adds a shared target to locate native compiler/linker flags (new). |
| eng/common/native/install-dependencies.sh | Updates native dependency install lists and adds distro cases/tools. |
| eng/common/native/init-distro-rid.sh | Adds OpenBSD RID support. |
| eng/common/internal-feed-operations.ps1 | Adds UseBasicParsing to Invoke-WebRequest. |
| eng/common/Get-GitHubAppToken.ps1 | Adds GitHub App installation token minting via Key Vault signing (new). |
| eng/common/generate-sbom-prep.sh | Removes SBOM prep shim (deleted). |
| eng/common/generate-sbom-prep.ps1 | Removes SBOM prep shim (deleted). |
| eng/common/dotnet.ps1 | Propagates exit code from invoked dotnet.exe. |
| eng/common/darc-init.sh | Updates dotnet tool install args (--source). |
| eng/common/darc-init.ps1 | Updates dotnet tool install args (--source). |
| eng/common/cross/toolchain.cmake | Adds OpenBSD detection/toolchain and updates FreeBSD triples; refactors Haiku toolchain handling. |
| eng/common/cross/install-debs.py | Adds checksums/signature verification and hardens extraction/subprocess usage. |
| eng/common/cross/build-rootfs.sh | Updates rootfs creation flows, adds OpenBSD path, improves signature-check handling, and updates URLs. |
| eng/common/core-templates/steps/source-index-stage1-publish.yml | Updates dotnet tool install args (--source). |
| eng/common/core-templates/steps/source-build.yml | Marks logs as non-production artifacts (isProduction). |
| eng/common/core-templates/steps/send-to-helix.yml | Restructures msbuild invocation and adds Helix Job Monitor opt-in parameter. |
| eng/common/core-templates/steps/publish-logs.yml | Switches to pipeline artifact publishing and changes artifact naming. |
| eng/common/core-templates/steps/get-github-app-token.yml | Adds AzureCLI-based GitHub App token step template (new). |
| eng/common/core-templates/steps/generate-sbom.yml | Deprecates SBOM template usage and emits warning. |
| eng/common/core-templates/steps/component-governance.yml | Removes CG detection template (deleted). |
| eng/common/core-templates/post-build/setup-maestro-vars.yml | Switches to DownloadPipelineArtifact@2 and updates target path. |
| eng/common/core-templates/post-build/post-build.yml | Adds publishing infra v4 option and updates publishing/download logic. |
| eng/common/core-templates/jobs/jobs.yml | Introduces publishingVersion param and forwards it into publish-build-assets job template. |
| eng/common/core-templates/job/source-build.yml | Updates pool image/demands to Azure Linux 3 images. |
| eng/common/core-templates/job/publish-build-assets.yml | Removes PAT variable group and updates publishing/log steps and pool image. |
| eng/common/core-templates/job/onelocbuild.yml | Adds WIF-based Ceapex auth and GitHub App auth options; updates pool image defaults. |
| eng/common/core-templates/job/job.yml | Removes componentGovernanceSteps plumbing and adds enablePublishing param. |
| eng/common/core-templates/job/helix-job-monitor.yml | Adds a dedicated Helix job monitor job template (new). |
| eng/common/build.sh | Adds --warnNotAsError option wiring. |
| eng/common/build.ps1 | Adds -warnNotAsError parameter and usage documentation. |
Review details
- Files reviewed: 51/51 changed files
- Comments generated: 4
- Review effort level: Lite
| $versionDetailsPath = Resolve-Path (Join-Path $PSScriptRoot '..\Version.Details.xml') | Select-Object -ExpandProperty Path | ||
| [xml]$versionDetails = Get-Content -Path $versionDetailsPath | ||
| $repoName = $versionDetails.SelectSingleNode('//Source').Mapping | ||
| if (-not $repoName) { | ||
| Fail "Failed to resolve repo mapping from $versionDetailsPath" | ||
| exit 1 | ||
| } |
| version_details_path=$(cd "$scriptroot/.."; pwd -P)/Version.Details.xml | ||
| repo_name=$(grep -m 1 '<Source ' "$version_details_path" | sed -n 's/.*Mapping="\([^"]*\)".*/\1/p') | ||
| if [[ -z "$repo_name" ]]; then | ||
| fail "Failed to resolve repo mapping from $version_details_path" | ||
| exit 1 | ||
| fi |
| scriptPath: $(System.DefaultWorkingDirectory)/eng/common/post-build/publish-using-darc.ps1 | ||
| arguments: > | ||
| -BuildId $(BARBuildId) | ||
| -PublishingInfraVersion ${{ parameters.publishingInfraVersion }} | ||
| -PublishingInfraVersion 3 | ||
| -AzdoToken '$(System.AccessToken)' |
| { | ||
| "tools": { | ||
| "dotnet": "10.0.100-rtm.25523.113" | ||
| "dotnet": "10.0.111" |
|
@dalexsoto @rolfbjarne can this PR be closed then? #36257 |
<!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Address both .NET 9 integration-test failures exposed by the servicing SDK update in #38318, while preserving its SDK/dependency upgrades: - Add the public ASP.NET Core, runtime, and Windows Desktop servicing feeds containing the **9.0.21** targeting/runtime packs. Keep these sources outside the Dependency Flow-managed block. - In the integration-test build helper, retain the `NETSDK1202` workload end-of-support diagnostic as a **warning**, rather than promoting it to an error with `-warnaserror`. The compatibility matrix intentionally exercises previous .NET workloads. Other warnings remain errors; no test cases are skipped, and shipped templates/support policy are unchanged. The installed SDK is now `10.0.113-servicing.26454.107`. When targeting `net9.0`, it requests 9.0.21 packs, but the new .NET 10 coherent feed supplies 10.0.13 packages and none of the previously configured sources supplies the required 9.0.21 packs. Adding the general `dotnet9` feed alone would not help: it does not contain these servicing versions. The same 26 unique .NET 9 integration cases failed on [main build 1587498](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1587498) and [inflight/candidate build 1587610](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1587610). These builds also reported `NETSDK1202` for `net9.0-android`. ### Validation **Final [maui-pr build 1589411](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1589411) succeeded on commit `d6ed823714`: all 26 jobs passed, with no failed, canceled, pending, or skipped jobs.** Build Analysis and Build Insights also passed. The actual test logs confirm all four affected integration jobs passed, with no missing-package or fatal EOL errors: | Integration job | Passed | Failed | Skipped | | --- | ---: | ---: | ---: | | [Build macOS](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1589411/logs/965?api-version=7.1) | 67 | 0 | 0 | | [Build windows](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1589411/logs/956?api-version=7.1) | 67 | 0 | 0 | | [WindowsTemplates](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1589411/logs/909?api-version=7.1) | 29 | 0 | 0 | | [RunOnAndroid](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1589411/logs/900?api-version=7.1) | 11 | 0 | 0 | An isolated restore using the repository's NuGet.config reproduced `NU1102` before the feed change for all six package IDs below at exactly `9.0.21`. The same restore succeeded afterward; package metadata confirms the intended public sources. - `Microsoft.AspNetCore.App.Ref` - `Microsoft.WindowsDesktop.App.Ref` - `Microsoft.NETCore.App.Ref` - `Microsoft.NETCore.App.Host.win-x64` - `Microsoft.NETCore.App.Runtime.win-x64` - `Microsoft.NETCore.App.Crossgen2.win-x64` The first [PR CI build, 1589155](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1589155), confirmed the completed affected integration logs no longer contained missing-package errors. RunOnAndroid passed all 11 cases. Build macOS and WindowsTemplates still failed because they promoted `NETSDK1202` to an error, motivating the test-helper follow-up. For that follow-up, the real .NET SDK `_CheckForEolWorkloads` target fails under `-warnaserror` and succeeds, with the warning still printed, when adding `-warnnotaserror:NETSDK1202`. An unrelated control warning still fails. Verified with installed .NET 10 and .NET 11 MSBuild; the integration harness compiles successfully with .NET 10. ### Issues Fixed Fixes the main and inflight/candidate integration regression introduced by #38318. No separate issue was supplied. No other open PR referencing #38318, 9.0.21, or NETSDK1202 was found when preparing the fixes. --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: dbd1bcb1-0ca0-4b92-9828-daa98acc2473
…ixes (#38732) <!-- Please let the below note in for people that find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Temporarily roll back **only the runtime/library package versions** raised by #38318 (`afa32ac2ba662fa2e3bb4775b30eb7518976f1ad`), from `10.0.13` to their previous `10.0.0` values, until the `10.0.13` libraries are publicly available. The final PR diff changes only `eng/Versions.props` and `eng/Version.Details.xml`: 26 version properties and the matching dependency versions/source revisions. This covers the runtime reference pin and the Extensions, ASP.NET Core/Blazor, and JSInterop dependencies. System.Text.Json, System.Text.Encodings.Web, System.CodeDom, and Microsoft.Bcl.AsyncInterfaces inherit the reverted runtime version. **Keep the SDK and Arcade fixes:** `global.json`, `NuGet.config`, and the entire `eng/common` directory are unchanged from the base. SDK/bootstrap `10.0.113-servicing.26454.107`, Android `36.1.115`, Arcade/Helix/build tools `10.0.0-beta.26454.107`, and their source revisions remain intact. All unrelated later `main` changes are preserved. The original full-revert proposal was narrowed at the user's request. The follow-up commit restores the SDK/toolset/vendor changes without rewriting published history. This is **not** a full revert of #38318 and **not** a pin to `10.0.12`. It restores older runtime/library versions, so their intervening servicing fixes are not included in these dependency pins; the rollback is temporary. Draft follow-up #38733 restores those versions and is marked **DO NOT MERGE** until the required `10.0.13` packages are available on NuGet.org and clean consumer restores succeed without additional build/private feeds. Based on `main` at `f8a2f062a8e1b4686a5a3de93bb69cabc02c8c4a`. ### Issues Fixed Addresses the public consumer restore regression introduced by #38318: MAUI packages required unavailable `10.0.13` libraries, producing NU1103 for Extensions, ASP.NET Core/Blazor, JSInterop, and System.Text.Json. ### Validation - Verified that the final diff contains only the two dependency files and exactly the intended 26 runtime/library pin changes, with matching original source revisions. SDK/Android/toolset/vendor/feed content remains identical to the base. - XML/JSON parsing and `git diff --check` pass; SDK/bootstrap and Arcade/Helix metadata agree. - A standalone managed `net10.0` fixture imports this branch's `eng/Versions.props`. A fresh public `dotnet-public` mirror restore resolved all **29 direct references at exactly `10.0.0`**, with all 42 direct/transitive packages downloaded from that mirror. The fixture built with installed SDK `10.0.100`, with zero warnings/errors. This is a library availability check, not a complete MAUI build. - `darc verify --ci` still reports the three known baseline failures: duplicate `TizenUIExtensions`, duplicate `XUnitAnalyzers`, and XHarness CLI casing. **No Arcade/Helix version mismatches remain.** These unrelated baseline issues are not changed here. - Direct NuGet.org restore is blocked by this host's TLS connection failure, independently reproduced with curl. No native workloads were installed. Full mobile/official-publishing validation remains for CI; the earlier full-revert build probe was stopped when the scope changed. CI is pending; these local checks do not establish full cross-platform readiness. --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Description of Change
This PR is the result of running: