Skip to content

[release/10.0.1xx] Downgrade NU1901, NU1902, NU1903 to warnings and log them, enable warnAsError - #10307

Merged
akoeplinger merged 6 commits into
release/10.0.1xxfrom
akoeplinger/backport-7922-release-10.0.1xx
Oct 19, 2026
Merged

akoeplinger merged 6 commits into
release/10.0.1xxfrom
akoeplinger/backport-7922-release-10.0.1xx

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Backport of #7922 to release/10.0.1xx.

Note that this also enables -warnAsError globally in Directory.Build.rsp.

Conflict resolution: preserve the release-specific Newtonsoft.Json reference, applying the same ExcludeAssets="runtime" and audit-warning suppression removal as the other references. All other changes merge automatically.

Validation: compiled all three modified tools targeting net10.0 using the locally available .NET 11 SDK with Arcade imports disabled; exercised diagnostic warning/error handling with synthetic logs; parsed changed XML, Bash, and PowerShell files. A full SDK build was not run.

Note

Prepared with GitHub Copilot.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 383ea2c0-59cf-4fd9-b024-4bb649e4a07e
(cherry picked from commit 0b5109c)
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9be4d078-00a5-46c0-8a67-69cc168c1960

# Conflicts:
#	eng/tools/tasks/Microsoft.DotNet.UnifiedBuild.Tasks/Microsoft.DotNet.UnifiedBuild.Tasks.csproj
@akoeplinger
akoeplinger requested review from a team as code owners October 19, 2026 15:24
@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.

@dotnet-policy-service
dotnet-policy-service Bot requested review from a team October 19, 2026 15:25
akoeplinger and others added 2 commits October 19, 2026 19:20
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9be4d078-00a5-46c0-8a67-69cc168c1960
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9be4d078-00a5-46c0-8a67-69cc168c1960
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team October 19, 2026 17:30
333fred
333fred previously approved these changes Oct 19, 2026

@333fred 333fred left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Roslyn changes LGTM.

akoeplinger and others added 3 commits October 19, 2026 22:28
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9be4d078-00a5-46c0-8a67-69cc168c1960
Backport the Nerdbank.MessagePack.dll and PolyType.dll signing mappings from #9925 (upstream commit 5c86052).

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9be4d078-00a5-46c0-8a67-69cc168c1960
Update the explicit test-runtime package pin from 8.0.29 to 8.0.32 to address GHSA-fpq8-4vhr-rcxx and GHSA-rv87-ccxw-8ggf without suppressing NU1904.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9be4d078-00a5-46c0-8a67-69cc168c1960
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team October 19, 2026 20:41
@333fred
333fred dismissed their stale review October 19, 2026 20:43

New roslyn changes have flowed in.

@333fred

333fred commented Oct 19, 2026

Copy link
Copy Markdown
Member

I remain confused as to why more roslyn-related changes are being backported as part of this change.

@akoeplinger akoeplinger changed the title [release/10.0.1xx] Downgrade NU1901, NU1902, NU1903 to warnings and log them [release/10.0.1xx] Downgrade NU1901, NU1902, NU1903 to warnings and log them, enable warnAsError Oct 19, 2026
@akoeplinger

akoeplinger commented Oct 19, 2026 •

Copy link
Copy Markdown
Member Author

@333fred same reason as in #10306, to fix issues that showed up when -warnAsError got turned on.

The razor vulnerability fix was necessary because this doesn't yet turn NU1904 into a warning (this was done in a couple follow-up commits in main and I didn't want to make the backport even more complicated, though we can do that later on).

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.

4 participants