Skip to content

Add suppression for trimming warnings in NuGetCommand - #7859

Merged
Nigusu-Allehu merged 1 commit into
mainfrom
dev-nyenework-suppress-nuget-ruc
Jul 21, 2026
Merged

Nigusu-Allehu merged 1 commit into
mainfrom
dev-nyenework-suppress-nuget-ruc

Conversation

@Nigusu-Allehu

Copy link
Copy Markdown
Member

Add UnconditionalSuppressMessage attribute to InProcessNuGetCommandRunner.

Add UnconditionalSuppressMessage attribute to InProcessNuGetCommandRunner.
Copilot AI review requested due to automatic review settings July 20, 2026 20:52
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an UnconditionalSuppressMessage suppression to the in-proc NuGet command runner to silence IL2026 trimming/AOT analyzer warnings in the dotnet CLI codebase.

Changes:

  • Added System.Diagnostics.CodeAnalysis import to enable suppression attributes.
  • Added UnconditionalSuppressMessage on InProcessNuGetCommandRunner.Run to suppress IL2026.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Nigusu-Allehu
Nigusu-Allehu merged commit 766c39a into main Jul 21, 2026
12 checks passed
@Nigusu-Allehu
Nigusu-Allehu deleted the dev-nyenework-suppress-nuget-ruc branch July 21, 2026 21:29
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