Repository navigation
Fix NuGet Audit errors and build issues - #7913
Merged
Merged
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. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts multiple repo build settings across the VMR to address NuGet audit/vulnerability-related build breaks and improve build logging/behavior during repo orchestration.
Changes:
- Removes per-repo
WarningsNotAsErrorsdemotions for NU1901–NU1904 in severalDirectory.Build.props/props files. - Updates build/orchestration scripts to handle warning demotion more reliably (escaping
AdditionalWarningsNotAsErrors) and improves repo build log capture/printing. - Updates several repos’
global.jsonand bumps specific vulnerable dependency versions (notablySystem.Security.Cryptography.Xmland related packages).
Show a summary per file
| File | Description |
|---|---|
| src/xdt/Directory.Build.props | Removes conditional NU190x demotion via WarningsNotAsErrors. |
| src/wpf/eng/WpfArcadeSdk/tools/CodeAnalysis.props | Removes conditional NU190x demotion via WarningsNotAsErrors. |
| src/winforms/src/BuildAssist/BuildAssist.msbuildproj | Marks BuildAssist as IsTestUtilityProject; minor formatting cleanup. |
| src/winforms/eng/Analyzer.props | Removes conditional NU190x demotion via WarningsNotAsErrors. |
| src/windowsdesktop/Directory.Build.props | Removes conditional NU190x demotion via WarningsNotAsErrors. |
| src/symreader/src/Directory.Build.props | Removes conditional NU190x demotion via WarningsNotAsErrors. |
| src/sourcelink/src/Directory.Build.props | Removes conditional NU190x demotion via WarningsNotAsErrors. |
| src/source-build-assets/Directory.Build.props | Removes conditional NU190x demotion via WarningsNotAsErrors. |
| src/sdk/global.json | Pins SDK selection (version/rollForward/allowPrerelease). |
| src/sdk/Directory.Build.props | Removes explicit NuGetAudit enable/official-build disable logic. |
| src/scenario-tests/src/Directory.Build.props | Removes conditional NU190x demotion via WarningsNotAsErrors. |
| src/scenario-tests/global.json | Adds sdk section pinning SDK selection. |
| src/runtime/Directory.Build.props | Removes conditional NU190x demotion via WarningsNotAsErrors. |
| src/nuget-client/global.json | Adds sdk section pinning SDK selection. |
| src/nuget-client/eng/dotnet-build/build.sh | Adds /warnaserror handling + AdditionalWarningsNotAsErrors escaping. |
| src/nuget-client/eng/dotnet-build/build.ps1 | Adds warnAsError parameter plumbed via common tools behavior. |
| src/msbuild/global.json | Pins SDK version for msbuild repo. |
| src/msbuild/eng/Version.Details.xml | Bumps vulnerable dependency versions to 10.0.10. |
| src/msbuild/eng/Version.Details.props | Bumps corresponding package version properties to 10.0.10. |
| src/fsharp/tests/FSharp.Build.UnitTests/FSharp.Build.UnitTests.fsproj | Adds explicit System.Security.Cryptography.Xml reference to avoid vulnerable transitives. |
| src/fsharp/src/fsi/fsi.targets | Adds explicit System.Security.Cryptography.Xml reference to avoid vulnerable transitives. |
| src/fsharp/src/FSharp.Build/FSharp.Build.fsproj | Annotates/updates System.Security.Cryptography.Xml reference comment. |
| src/fsharp/src/fsc/fsc.targets | Adds explicit System.Security.Cryptography.Xml reference to avoid vulnerable transitives. |
| src/fsharp/eng/Version.Details.xml | Bumps System.Security.Cryptography.Xml dependency to 10.0.10. |
| src/fsharp/eng/Version.Details.props | Bumps SystemSecurityCryptographyXmlPackageVersion to 10.0.10. |
| src/deployment-tools/Directory.Packages.props | Removes audit suppression (now unnecessary due to updated System.Text.Json). |
| src/deployment-tools/Directory.Build.props | Removes conditional NU190x demotion via WarningsNotAsErrors. |
| src/cecil/global.json | Adds sdk section pinning SDK selection. |
| src/arcade/src/Microsoft.DotNet.Arcade.Sdk/tools/ProjectDefaults.props | Removes one AdditionalWarningsNotAsErrors append location (other handling remains). |
| src/arcade/NuGet.config | Adds explicit auditSources configuration. |
| src/arcade/eng/Version.Details.xml | Bumps multiple runtime-carried dependencies to 10.0.10. |
| src/arcade/eng/Version.Details.props | Bumps corresponding package version properties to 10.0.10. |
| src/arcade/eng/common/tools.sh | Escapes AdditionalWarningsNotAsErrors for MSBuild property passing. |
| src/arcade/eng/common/tools.ps1 | Escapes AdditionalWarningsNotAsErrors for MSBuild property passing. |
| src/arcade/Directory.Build.props | Removes conditional NU190x demotion via WarningsNotAsErrors. |
| repo-projects/Directory.Build.targets | Changes repo build logging to always write a per-repo log and adjusts error propagation. |
| repo-projects/Directory.Build.props | Adds (currently unused) FlagParameterSemicolon properties. |
| eng/common/tools.sh | Escapes AdditionalWarningsNotAsErrors for MSBuild property passing. |
| eng/common/tools.ps1 | Escapes AdditionalWarningsNotAsErrors for MSBuild property passing. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (2)
src/nuget-client/eng/dotnet-build/build.sh:70
- This script currently only recognizes
--warnnotaserror(double-dash). Other NuGet client build scripts accept-warnnotaserror(single-dash), so callers can easily pass a flag that is ignored here. Accept both forms to keep CLI behavior consistent.
--warnnotaserror)
repo-projects/Directory.Build.props:83
FlagParameterSemicolonis defined here but has no usages in the repo (no$(FlagParameterSemicolon)references). If it’s not used in this change, it should be removed to avoid accumulating unused build configuration.
<PropertyGroup Condition="'$(BuildOS)' != 'windows'">
<FlagParameterPrefix>--</FlagParameterPrefix>
<ArcadeFalseBoolBuildArg>false</ArcadeFalseBoolBuildArg>
<FlagParameterSemicolon>\;</FlagParameterSemicolon>
</PropertyGroup>
- Files reviewed: 39/39 changed files
- Comments generated: 2
mmitche
approved these changes
Jul 22, 2026
wtgodbe
approved these changes
Jul 22, 2026
wtgodbe
approved these changes
Jul 22, 2026
akoeplinger
approved these changes
Jul 22, 2026
ViktorHofer
disabled auto-merge
July 23, 2026 05:30
Member
Author
|
@dkurepa @akoeplinger please one more approval |
dkurepa
approved these changes
Jul 23, 2026
mthalman
pushed a commit
to omajid/dotnet-dotnet
that referenced
this pull request
Jul 24, 2026
This was referenced Jul 29, 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.
Unblocks dev/PR builds that have NuGet Audit enabled
Forward port #7885, #7875, #7873 and #7906
Summary: