Skip to content

Conversation

@Shrinidhi203
Copy link
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
Copy link
Collaborator

@timcassell timcassell left a comment

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