Skip to content

[build] Update MSBuild and cryptography packages - #13595

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-bump-system-security-cryptography-xml
Nov 17, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-bump-system-security-cryptography-xml

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Update System.Security.Cryptography.Xml to 10.0.15, which also updates its
Pkcs dependency to 10.0.15.

Use MSBuild 18.12.2 from nuget.org instead of the dotnet-tools prerelease.
Its reference assemblies expose AbsolutePath.GetCanonicalForm, which
#13465 needed.

Validation on Windows:

  • build.cmd: passed
  • dotnet test tests/Microsoft.Android.Build.BaseTasks-Tests/Microsoft.Android.Build.BaseTasks-Tests.csproj: 162 passed, 8 skipped
  • dotnet-local.cmd test bin/TestDebug/net11.0/Xamarin.Android.Build.Tests.dll --filter Name~AndroidComputeResPaths: 13 passed

Update System.Security.Cryptography.Xml to 10.0.15, which also updates its Pkcs dependency to 10.0.15.

Use MSBuild 18.12.2 from nuget.org instead of the dotnet-tools prerelease. Its reference assemblies expose AbsolutePath.GetCanonicalForm, which #13465 needed.

Validation on Windows:

  * build.cmd: passed
  * dotnet test tests/Microsoft.Android.Build.BaseTasks-Tests/Microsoft.Android.Build.BaseTasks-Tests.csproj: 162 passed, 8 skipped
  * dotnet-local.cmd test bin/TestDebug/net11.0/Xamarin.Android.Build.Tests.dll --filter Name~AndroidComputeResPaths: 13 passed

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 17, 2026 16:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The shared build dependency updates have no active review issues.

No open issues 🎉

What changed in this PR

Updates shared build dependencies for .NET for Android, replacing the prerelease MSBuild package used by #13465 with a stable release that exposes AbsolutePath.GetCanonicalForm.

Changes:

  • Switches MSBuild packages to stable version 18.12.2.
  • Updates System.Security.Cryptography.Xml to 10.0.15, also bringing its transitive Pkcs dependency to 10.0.15.
File Description
src/​Microsoft.Android.Build.BaseTasks/​MSBuildReferences.projitems Updates shared MSBuild and cryptography package versions.

Review effort: Balanced

@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label Nov 17, 2026
@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 17, 2026 20:23

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed c36d6cf8 against main at 0f521ede (1 file). This is a static, read-only review.

All four MSBuild packages at 18.12.2 and System.Security.Cryptography.Xml/Pkcs at 10.0.15 are stable, and dotnet-public serves them (NuGet.config doesn't list nuget.org, so that matters). The 18.12.2 Microsoft.Build.Framework reference assemblies include AbsolutePath.GetCanonicalForm and the other TaskEnvironment APIs used by AndroidComputeResPaths and MonoAndroidHelper.Nullable. The MSBuild packages' dependency sets match the prerelease they replace, so there's no new downgrade path, and nothing else pins these packages.

LGTM.

@jonathanpeppers
jonathanpeppers merged commit 14dd230 into main Nov 17, 2026
39 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-bump-system-security-cryptography-xml branch November 17, 2026 21:07
jonathanpeppers added a commit that referenced this pull request Nov 18, 2026
Backport the cryptography package update to release/11.0.1xx. This also
updates System.Security.Cryptography.Pkcs to 10.0.15. Keep MSBuild at
18.7.1 for this servicing branch.

Context: #13595

Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants