Skip to content

Commit dc13605

Browse files
authored
Enable max warnlevel from C# compiler (dotnet#62506)
1 parent 7ff068a commit dc13605

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Directory.Build.props

+2
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@
278278
<PropertyGroup>
279279
<!-- default to allowing all language features -->
280280
<LangVersion>preview</LangVersion>
281+
<!-- default to max warnlevel -->
282+
<AnalysisLevel Condition="'$(MSBuildProjectExtension)' == '.csproj'">preview</AnalysisLevel>
281283
<LangVersion Condition="'$(MSBuildProjectExtension)' == '.vbproj'">latest</LangVersion>
282284
<!-- Enables Strict mode for Roslyn compiler -->
283285
<Features>strict;nullablePublicOnly</Features>

0 commit comments

Comments
 (0)