Skip to content

Allow all warnings in dev build#38551

Merged
AndriySvyryd merged 1 commit into
dotnet:mainfrom
JoasE:AllowAllWarningsInDevBuild
Jul 2, 2026
Merged

Allow all warnings in dev build#38551
AndriySvyryd merged 1 commit into
dotnet:mainfrom
JoasE:AllowAllWarningsInDevBuild

Conversation

@JoasE

@JoasE JoasE commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This is a small change to make developer builds not treat any warnings as errors

Copilot AI review requested due to automatic review settings July 2, 2026 14:18

Copilot AI left a comment

Copy link
Copy Markdown

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 changes the repo’s default build settings so that when DeveloperBuild is enabled, warnings are no longer promoted to errors, making local/dev builds more permissive while keeping CI/normal builds unchanged.

Changes:

  • For DeveloperBuild == true, sets TreatWarningsAsErrors to false.
  • Clears WarningsAsErrors for DeveloperBuild == true to avoid any explicitly promoted warning IDs in that mode.

@AndriySvyryd AndriySvyryd merged commit abad2be into dotnet:main Jul 2, 2026
16 checks passed
@JoasE JoasE deleted the AllowAllWarningsInDevBuild branch July 2, 2026 16:26
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.

3 participants