Skip to content

Fix #2581: Copy WarningsAsErrors setting to generated project - #2976

Merged
timcassell merged 1 commit into
dotnet:masterfrom
Shrinidhi203:fix-issue-2581-clean
Jan 23, 2026
Merged

timcassell merged 1 commit into
dotnet:masterfrom
Shrinidhi203:fix-issue-2581-clean

Conversation

@Shrinidhi203

Copy link
Copy Markdown
Contributor

Add WarningsAsErrors to SettingsWeWantToCopy array in CsProjGenerator so that NuGet restore warnings configured in the source project are preserved in the generated benchmark project and fail the build.

Added test WarningsAsErrorsSettingGetsCopied() to verify the fix.

Add WarningsAsErrors to SettingsWeWantToCopy array in CsProjGenerator
so that NuGet restore warnings configured in the source project are
preserved in the generated benchmark project and fail the build.

Added test WarningsAsErrorsSettingGetsCopied() to verify the fix.
@timcassell timcassell linked an issue Jan 23, 2026 that may be closed by this pull request

@timcassell timcassell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @Shrinidhi203

@timcassell
timcassell merged commit 2d71583 into dotnet:master Jan 23, 2026
11 checks passed
@timcassell timcassell added this to the v0.16.0 milestone Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to fail the run if NuGet restored with warnings?

2 participants