Skip to content

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

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

akoeplinger merged 4 commits into
release/10.0.4xxfrom
akoeplinger/backport-7922-release-10.0.4xx

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Backport of #7922 to release/10.0.4xx.

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

Conflict resolutions:

  • Preserve the release-specific Newtonsoft.Json reference, applying the same ExcludeAssets="runtime" and audit-warning suppression removal as the other references.
  • Omit the src/runtime/eng/build.ps1 change because this branch no longer contains the runtime repository.

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
#	src/runtime/eng/build.ps1
@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
Port the targeted fixes from #9925 for CS8604 in source-only builds and SIGN004 on five test-resource DLLs. Leave vulnerability diagnostics unchanged.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9be4d078-00a5-46c0-8a67-69cc168c1960
Comment thread src/roslyn/eng/Signing.props Resolved
akoeplinger and others added 2 commits October 19, 2026 22:38
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 10.0.1 to 10.0.13 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
@akoeplinger akoeplinger changed the title [release/10.0.4xx] Downgrade NU1901, NU1902, NU1903 to warnings and log them [release/10.0.4xx] Downgrade NU1901, NU1902, NU1903 to warnings and log them, enable warnAsError Oct 19, 2026
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