Repository navigation
Migrate nuget-client VMR build to use default scripts - #8224
Merged
ViktorHofer merged 7 commits intoAug 11, 2026
Merged
ViktorHofer merged 7 commits into
ViktorHofer merged 7 commits into
Conversation
|
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. |
ViktorHofer
force-pushed
the
MigrateNuGetClientToUseDefaultBuildScriptAndSetWarningsNotAsErrorsDefaults
branch
2 times, most recently
from
August 11, 2026 08:37
ec56925 to
d5521fa
Compare
... and set a default for warnNotAsErrors in scripts
ViktorHofer
force-pushed
the
MigrateNuGetClientToUseDefaultBuildScriptAndSetWarningsNotAsErrorsDefaults
branch
from
August 11, 2026 09:11
d5521fa to
7cbb714
Compare
…NotAsErrorsDefaults' of https://github.com/dotnet/dotnet into MigrateNuGetClientToUseDefaultBuildScriptAndSetWarningsNotAsErrorsDefaults
|
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. |
Contributor
There was a problem hiding this comment.
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 simplifydotnet-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
RepoBuildWarningCodesToSurfacenow includesNU1904, and this list is also passed down via--warnnotaserror(see laterCommonArgsconstruction). That effectively preventsNU1904(critical NuGet audit) from failing the build by default, which is a security-policy change from keepingNU1904as an error.
<PropertyGroup>
<RepoBuildWarningCodesToSurface>NU1901;NU1902;NU1903;NU1904</RepoBuildWarningCodesToSurface>
</PropertyGroup>
- Files reviewed: 17/17 changed files
- Comments generated: 7
- Review effort level: Lite
akoeplinger
approved these changes
Aug 11, 2026
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Updated comments in Directory.Build.props to clarify warning codes handling.
akoeplinger
approved these changes
Aug 11, 2026
ViktorHofer
deleted the
MigrateNuGetClientToUseDefaultBuildScriptAndSetWarningsNotAsErrorsDefaults
branch
August 11, 2026 16:31
This was referenced Aug 12, 2026
This was referenced Aug 20, 2026
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
... and set a default for warnNotAsErrors in scripts
Unblocks dotnet/roslyn#84835 (the warnNotAsErrors downgrade part)