Repository navigation
[build] Update MSBuild and cryptography packages - #13595
Conversation
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]>
There was a problem hiding this comment.
🟢 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.Xmlto10.0.15, also bringing its transitivePkcsdependency to10.0.15.
| File | Description |
|---|---|
src/Microsoft.Android.Build.BaseTasks/MSBuildReferences.projitems |
Updates shared MSBuild and cryptography package versions. |
Review effort: Balanced
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
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.
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]>
Update
System.Security.Cryptography.Xmlto 10.0.15, which also updates itsPkcsdependency 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: passeddotnet test tests/Microsoft.Android.Build.BaseTasks-Tests/Microsoft.Android.Build.BaseTasks-Tests.csproj: 162 passed, 8 skippeddotnet-local.cmd test bin/TestDebug/net11.0/Xamarin.Android.Build.Tests.dll --filter Name~AndroidComputeResPaths: 13 passed