Skip to content

Commit 825c795

Browse files
Enable warning as error for all projects and configurations
1 parent f076ee4 commit 825c795

File tree

5 files changed

+3
-14
lines changed

5 files changed

+3
-14
lines changed

build-common/NHibernate.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@
2121
<PackageLicenseUrl>https://raw.githubusercontent.com/nhibernate/nhibernate-core/master/LICENSE.txt</PackageLicenseUrl>
2222
<RepositoryUrl>https://github.com/nhibernate/nhibernate-core.git</RepositoryUrl>
2323
<RepositoryType>git</RepositoryType>
24+
25+
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
26+
<TreatSpecificWarningsAsErrors />
2427
</PropertyGroup>
2528
</Project>

src/NHibernate.DomainModel/NHibernate.DomainModel.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
<IsTestProject>true</IsTestProject>
77
<NoWarn>$(NoWarn);3001;3002;3003;3005</NoWarn>
88
</PropertyGroup>
9-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
10-
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
11-
<TreatSpecificWarningsAsErrors />
12-
</PropertyGroup>
139
<ItemGroup>
1410
<None Remove="**\*.hbm.xml" />
1511
</ItemGroup>

src/NHibernate.Test/NHibernate.Test.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
<IsTestProject>true</IsTestProject>
88
<NoWarn>$(NoWarn);3001;3002;3003;3005</NoWarn>
99
</PropertyGroup>
10-
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
11-
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
12-
<TreatSpecificWarningsAsErrors />
13-
</PropertyGroup>
1410
<ItemGroup>
1511
<None Remove="**\*.hbm.xml" />
1612
<None Remove="**\*.jpg" />

src/NHibernate.TestDatabaseSetup/NHibernate.TestDatabaseSetup.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
<IsTestProject>true</IsTestProject>
88
<NoWarn>$(NoWarn);3001;3002;3003;3005</NoWarn>
99
</PropertyGroup>
10-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
11-
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
12-
<TreatSpecificWarningsAsErrors />
13-
</PropertyGroup>
1410
<ItemGroup>
1511
<ProjectReference Include="..\NHibernate.Test\NHibernate.Test.csproj" />
1612
</ItemGroup>

src/NHibernate/NHibernate.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
1010
<AssemblyOriginatorKeyFile>..\NHibernate.snk</AssemblyOriginatorKeyFile>
1111
<GenerateDocumentationFile>true</GenerateDocumentationFile>
12-
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
13-
<TreatSpecificWarningsAsErrors />
1412

1513
<PackageDescription>NHibernate is a mature, open source object-relational mapper for the .NET framework. It is actively developed, fully featured and used in thousands of successful projects.</PackageDescription>
1614
<PackageTags>ORM; O/RM; DataBase; DAL; ObjectRelationalMapping; NHibernate; ADO.Net; Core</PackageTags>

0 commit comments

Comments
 (0)