Skip to content

Use newer versions of MSBuild's packages#6488

Merged
zivkan merged 3 commits intodevfrom
dev-zivkan-update-msbuild
Jun 3, 2025
Merged

Use newer versions of MSBuild's packages#6488
zivkan merged 3 commits intodevfrom
dev-zivkan-update-msbuild

Conversation

@zivkan
Copy link
Copy Markdown
Member

@zivkan zivkan commented May 30, 2025

Bug

Fixes: NuGet/Home#14342

Description

Update MSBuild package versions to ones that don't have known vulnerabilities.

None of our tests running on netcoreapp3.1 or net5.0 need msbuild packages, so they were removed.

NuGet.Build.Tasks.Pack needed a change to its ILMerge config to use the package's ref assemblies, because the later versions of MSBuild don't ship lib/netsandard2.0/* assemblies. Note, we never merged MSBuild into NuGet.Build.Tasks.Pack.dll, but ILMerge still wants to be able to find the assemblies for "compile time" validation.

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.

@zivkan zivkan requested a review from a team as a code owner May 30, 2025 04:04
@zivkan zivkan requested review from aortiz-msft and donnie-msft May 30, 2025 04:04
nkolev92
nkolev92 previously approved these changes May 30, 2025
Comment thread Directory.Packages.props
Comment thread src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.csproj
@zivkan zivkan requested a review from nkolev92 June 2, 2025 22:40
@aortiz-msft
Copy link
Copy Markdown
Collaborator

Could you please expand in the PR description why some packages were moved from lib to ref?

Copy link
Copy Markdown
Collaborator

@aortiz-msft aortiz-msft left a comment

Choose a reason for hiding this comment

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

I'm approving with a comment to improve the PR description.

@zivkan zivkan merged commit 57d0fa8 into dev Jun 3, 2025
20 of 21 checks passed
@zivkan zivkan deleted the dev-zivkan-update-msbuild branch June 3, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update NuGet to compile against newer versions of MSBuild

3 participants