Skip to content

Commit 56ba679

Browse files
Configure TreatWarningsAsErrors for Release builds only
Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com>
1 parent e753297 commit 56ba679

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ dotnet restore
162162
dotnet build --configuration Release
163163
```
164164

165-
**Note:** All builds treat analyzer warnings as errors (`<TreatWarningsAsErrors>true</TreatWarningsAsErrors>`).
165+
**Note:** Release builds treat all analyzer warnings as errors (`<TreatWarningsAsErrors>true</TreatWarningsAsErrors>`). Debug builds allow warnings to facilitate development.
166166

167167
### Run Tests
168168

src/Wolfgang.Extensions.IAsyncEnumerable/Wolfgang.Extensions.IAsyncEnumerable.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
<PropertyGroup>
3636
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
3737
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
38-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
3938
<Nullable>enable</Nullable>
4039
</PropertyGroup>
4140

0 commit comments

Comments
 (0)