Skip to content

Commit 58b811f

Browse files
committed
[Java.Interop] Treat warnings as errors.
1 parent 7f1a5ab commit 58b811f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<!-- Note: MUST be imported *after* $(Configuration) is set! -->
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<!-- Mono's MSBuild does not support some implicit .NET6 source generator stuff -->
7+
<TreatWarningsAsErrors Condition=" '$(Configuration)' == 'Release' And '$(MSBuildRuntimeType)' != 'Mono' ">true</TreatWarningsAsErrors>
68
<_OutputPath>$(MSBuildThisFileDirectory)bin\Build$(Configuration)\</_OutputPath>
79
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
810
</PropertyGroup>

0 commit comments

Comments
 (0)