Skip to content

Bump MSBuild to 18.6.3 for NET compilation of Nuget.Build.Tasks.dll - #7508

Merged
zivkan merged 1 commit into
NuGet:devfrom
JanProvaznik:dev-janprovaznik-bump-msbuild-18.6.3
Jun 26, 2026
Merged

zivkan merged 1 commit into
NuGet:devfrom
JanProvaznik:dev-janprovaznik-bump-msbuild-18.6.3

Conversation

@JanProvaznik

Copy link
Copy Markdown
Contributor

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.

  • this is due to discussion that new nuget.exe must keep working even used from vs17.14

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:Restore works 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

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests n/a
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. n/a

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]>
@JanProvaznik
JanProvaznik requested a review from a team as a code owner June 25, 2026 13:50
@dotnet-policy-service dotnet-policy-service Bot added the Community PRs created by someone not in the NuGet team label Jun 25, 2026
@JanProvaznik

Copy link
Copy Markdown
Contributor Author

@nkolev92 @zivkan ptal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community PRs created by someone not in the NuGet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants