Repository navigation
Bump MSBuild to 18.6.3 for NET compilation of Nuget.Build.Tasks.dll - #7508
Merged
zivkan merged 1 commit intoJun 26, 2026
Merged
Conversation
Updates MicrosoftBuildVersion 18.0.2 -> 18.6.3 so NuGet's .NET (SDK) MSBuild tasks compile against the MSBuild 18.6 API surface, enabling the in-process / repeated task-execution work tracked by the linked issue. The .NET Framework build of NuGet.Build.Tasks is unaffected because it compiles against the in-box MSBuild reference assemblies (not the package), so the legacy nuget.exe and desktop msbuild.exe paths stay on the frozen API surface. MSBuild 18.6.3 introduces a transitive dependency on System.Security.Cryptography.Xml 10.0.3, which trips NU1903 (high severity; GHSA-37gx-xxp4-5rgx / GHSA-w3x6-4m5h-cxqf; vulnerable <= 10.0.5). Bump the existing SystemSecurityCryptographyXmlPackageVersion pin 9.0.16 -> 10.0.8 (patched) to clear the audit warning, continuing the existing pattern of pinning S.S.C.Xml because MSBuild drags in a vulnerable transitive version. Part of NuGet/Home#14958. Co-authored-by: Copilot <[email protected]>
2 tasks
Contributor
Author
nkolev92
approved these changes
Jun 25, 2026
zivkan
approved these changes
Jun 26, 2026
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.
Bug
Part 2 of NuGet/Home#14958.
Description
Updates MicrosoftBuildVersion 18.0.2 -> 18.6.3 so NuGet's .NET (SDK) MSBuild tasks compile against the MSBuild 18.6 API surface, enabling the in-process task-execution work tracked by the linked issue. The .NET Framework build of NuGet.Build.Tasks is unaffected because it compiles against the in-box MSBuild reference assemblies (not the package), so the legacy nuget.exe and desktop msbuild.exe paths stay on the frozen API surface.
It'd be desirable to decouple what ships in nuget.exe and what ships in Nuget.Build.Tasks.dll for VS so that
msbuild -m -mt -t:Restoreworks in the new mode performantly, but that's out of scope for now and we'll proceed migrating tasks with conditional compilation.MSBuild 18.6.3 introduces a transitive dependency on System.Security.Cryptography.Xml 10.0.3, which trips NU1903 (high severity; GHSA-37gx-xxp4-5rgx / GHSA-w3x6-4m5h-cxqf; vulnerable <= 10.0.5). Bump the existing SystemSecurityCryptographyXmlPackageVersion pin 9.0.16 -> 10.0.8 (patched) to clear the audit warning, continuing the existing pattern of pinning S.S.C.Xml because MSBuild drags in a vulnerable transitive version.
PR Checklist
Added testsn/aLink to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.n/a