Skip to content

Migrate nuget-client VMR build to use default scripts - #8224

Merged
ViktorHofer merged 7 commits into
mainfrom
MigrateNuGetClientToUseDefaultBuildScriptAndSetWarningsNotAsErrorsDefaults
Aug 11, 2026
Merged

ViktorHofer merged 7 commits into
mainfrom
MigrateNuGetClientToUseDefaultBuildScriptAndSetWarningsNotAsErrorsDefaults

Conversation

@ViktorHofer

@ViktorHofer ViktorHofer commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

... and set a default for warnNotAsErrors in scripts

Unblocks dotnet/roslyn#84835 (the warnNotAsErrors downgrade part)

@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 August 11, 2026 08:17
@ViktorHofer
ViktorHofer force-pushed the MigrateNuGetClientToUseDefaultBuildScriptAndSetWarningsNotAsErrorsDefaults branch 2 times, most recently from ec56925 to d5521fa Compare August 11, 2026 08:37
... and set a default for warnNotAsErrors in scripts
@ViktorHofer
ViktorHofer force-pushed the MigrateNuGetClientToUseDefaultBuildScriptAndSetWarningsNotAsErrorsDefaults branch from d5521fa to 7cbb714 Compare August 11, 2026 09:11
@ViktorHofer
ViktorHofer marked this pull request as ready for review August 11, 2026 13:45
@ViktorHofer
ViktorHofer requested review from a team as code owners August 11, 2026 13:45
Copilot AI lite review requested due to automatic review settings August 11, 2026 13:45
@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

This PR updates the VMR integration for nuget-client to rely on the standard eng/common build entrypoints instead of repo-specific wrappers, and it adjusts the default handling of NuGet audit warning codes so audit findings don’t get promoted to errors by default.

Changes:

  • Switch nuget-client’s VMR build orchestration to call the shared eng/common/build.(sh|ps1) flow and simplify dotnet-build.proj.
  • Set/propagate defaults for warnNotAsError / WarningsNotAsErrors (notably NU1901–NU1904) across Arcade + VMR scripts and defaults.
  • Align a few repos/projects with the new audit-warning behavior by removing explicit NU190x suppressions and updating source mapping.
Show a summary per file
File Description
src/nuget-client/NuGet.Config Adds additional package source mapping patterns for dotnet-eng feed.
src/nuget-client/eng/Signing.props Formatting change to artifact item definition.
src/nuget-client/eng/dotnet-build/dotnet-build.proj Simplifies to call nuget-client’s build/build.proj XPlat targets.
src/nuget-client/eng/dotnet-build/build.sh Replaces custom build wrapper with eng/common/build.sh invocation.
src/nuget-client/eng/dotnet-build/build.ps1 Removes custom PowerShell build wrapper (now uses common script).
src/nuget-client/eng/dotnet-build/build.cmd Routes Windows entrypoint to eng/common/build.ps1 with -projects.
src/aspnetcore/src/Components/Testing/tasks/Microsoft.AspNetCore.Components.Testing.Tasks.csproj Drops NU190x suppressions, keeps public API tracking suppressions.
src/aspnetcore/eng/tools/RepoTasks/RepoTasks.csproj Removes NU190x suppressions for this build-time tool.
src/arcade/src/Microsoft.DotNet.Arcade.Sdk/tools/ProjectDefaults.props Adds defaults/merging behavior for warnings-not-as-errors, including audit codes.
src/arcade/eng/common/tools.sh Sets default warn_not_as_error list for audit warning codes.
src/arcade/eng/common/tools.ps1 Sets default warnNotAsError list for audit warning codes.
src/arcade/eng/BuildTask.targets Fixes ExcludeAssets metadata and removes explicit NU190x suppression.
repo-projects/nuget-client.proj Updates nuget-client build actions to include pack/publish (+ sign conditionally) and uses standard build scripts.
repo-projects/Directory.Build.props Updates surfaced warning codes list and conditionalizes passing --warnnotaserror.
eng/common/tools.sh Sets VMR-level default warn_not_as_error list for audit warning codes.
eng/common/tools.ps1 Sets VMR-level default warnNotAsError list for audit warning codes.
Directory.Build.rsp Removes -warnAsError / -warnNotAsError arguments, leaving only -tl:false.

Review details

Tip

Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Suppressed comments (1)

repo-projects/Directory.Build.props:90

  • RepoBuildWarningCodesToSurface now includes NU1904, and this list is also passed down via --warnnotaserror (see later CommonArgs construction). That effectively prevents NU1904 (critical NuGet audit) from failing the build by default, which is a security-policy change from keeping NU1904 as an error.
  <PropertyGroup>
    <RepoBuildWarningCodesToSurface>NU1901;NU1902;NU1903;NU1904</RepoBuildWarningCodesToSurface>
  </PropertyGroup>
  • Files reviewed: 17/17 changed files
  • Comments generated: 7
  • Review effort level: Lite

Comment thread repo-projects/Directory.Build.props Resolved
Comment thread eng/common/tools.sh Resolved
Comment thread eng/common/tools.ps1 Resolved
Comment thread src/arcade/eng/common/tools.sh Resolved
Comment thread src/arcade/eng/common/tools.ps1 Resolved
ViktorHofer and others added 2 commits August 11, 2026 16:12
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Updated comments in Directory.Build.props to clarify warning codes handling.
@ViktorHofer
ViktorHofer merged commit 95941ec into main Aug 11, 2026
8 of 11 checks passed
@ViktorHofer
ViktorHofer deleted the MigrateNuGetClientToUseDefaultBuildScriptAndSetWarningsNotAsErrorsDefaults branch August 11, 2026 16:31
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