Skip to content

Stop using Microsoft.Build.Tasks.Core - #7599

Merged
zivkan merged 1 commit into
devfrom
dev-zivkan-remove-msbuild.tasks.core
Jul 29, 2026
Merged

zivkan merged 1 commit into
devfrom
dev-zivkan-remove-msbuild.tasks.core

Conversation

@zivkan

@zivkan zivkan commented Jul 27, 2026 •

Copy link
Copy Markdown
Member

Bug

Fixes: infrastructure

Description

Microsoft.Build.Tasks.Core contains MSBuild's built-in tasks, that are normally invokved via MSBuild script, not in C# code. So, there's no reason for us to reference it. Unfortunately, Microsoft.VisualStudio.ProjectSystem references it. Also, Microsoft.Build.Tasks.Core references System.Security.Cryptography.Xml, and the two of these packages have had multiple CVEs, requiring us to pin higher versions to use fixed versions.

Since we don't need these assemblies at either build time or runtime, we'll abuse PrunedPackageReference to remove it from our graph, so we won't need to deal with NuGetAudit warnings, or internal security scanning tool alerts.

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

@zivkan
zivkan requested a review from a team as a code owner July 27, 2026 23:46
@zivkan
zivkan requested review from jebriede and kartheekp-ms July 27, 2026 23:46
@zivkan
zivkan merged commit f96940a into dev Jul 29, 2026
17 of 18 checks passed
@zivkan
zivkan deleted the dev-zivkan-remove-msbuild.tasks.core branch July 29, 2026 02:57
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.

3 participants