Skip to content

Commit 9ddd7e6

Browse files
authored
Merge pull request #8 from Otiel/task/treat-warnings-as-errors
Treat warnings as errors
2 parents 563a26b + f0da2d7 commit 9ddd7e6

4 files changed

Lines changed: 33 additions & 19 deletions

File tree

src/Demo/Demo.csproj

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<PropertyGroup>
4+
<!-- Version -->
5+
<VersionPrefix>1.0.0</VersionPrefix>
6+
</PropertyGroup>
7+
38
<PropertyGroup>
49
<!-- Assembly attributes -->
510
<AssemblyTitle>WpfMessageBoxDemo</AssemblyTitle>
611
<Description>Application used to demonstrate the capabilities of the WpfMessageBox</Description>
712
<Product>WpfMessageBoxDemo</Product>
8-
<Copyright>ⓒ Otiel $([System.DateTime]::Now.Year)</Copyright>
13+
</PropertyGroup>
914

10-
<AppendPlatformToOutputPath>false</AppendPlatformToOutputPath>
15+
<PropertyGroup>
1116
<OutputType>WinExe</OutputType>
12-
<TargetFrameworks>net48;net9.0-windows;net10.0-windows</TargetFrameworks>
1317
<UseWPF>true</UseWPF>
14-
15-
<VersionPrefix>1.0.0</VersionPrefix>
16-
</PropertyGroup>
17-
18-
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
19-
<VersionSuffix>pre$([System.DateTime]::Now.ToString("yyyyMMdd-HHmmss"))</VersionSuffix>
2018
</PropertyGroup>
2119

2220
<ItemGroup>

src/Directory.Build.props

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<Copyright>ⓒ Otiel $([System.DateTime]::Now.Year)</Copyright>
5+
<AppendPlatformToOutputPath>false</AppendPlatformToOutputPath>
6+
<TargetFrameworks>net48;net9.0-windows;net10.0-windows</TargetFrameworks>
7+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
8+
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
9+
</PropertyGroup>
10+
11+
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
12+
<VersionSuffix>pre$([System.DateTime]::Now.ToString("yyyyMMdd-HHmmss"))</VersionSuffix>
13+
</PropertyGroup>
14+
15+
</Project>

src/WpfMessageBox.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionIt
1616
..\README.md = ..\README.md
1717
..\.github\workflows\dotnet.yml = ..\.github\workflows\dotnet.yml
1818
global.json = global.json
19+
Directory.Build.props = Directory.Build.props
1920
EndProjectSection
2021
EndProject
2122
Global

src/WpfMessageBox/WpfMessageBox.csproj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<PropertyGroup>
4+
<!-- Version -->
5+
<VersionPrefix>1.3.0</VersionPrefix>
6+
</PropertyGroup>
7+
38
<PropertyGroup>
49
<!-- Assembly attributes -->
510
<AssemblyTitle>WpfMessageBox</AssemblyTitle>
611
<Description>A WPF message box, with optional features like custom buttons, textbox and checkbox.</Description>
712
<Product>WpfMessageBox</Product>
8-
<Copyright>ⓒ Otiel $([System.DateTime]::Now.Year)</Copyright>
13+
</PropertyGroup>
914

10-
<AppendPlatformToOutputPath>false</AppendPlatformToOutputPath>
11-
<TargetFrameworks>net48;net9.0-windows;net10.0-windows</TargetFrameworks>
15+
<PropertyGroup>
1216
<UseWPF>true</UseWPF>
13-
14-
<VersionPrefix>1.3.0</VersionPrefix>
15-
1617
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1718
<GenerateDocumentationFile>true</GenerateDocumentationFile>
19+
</PropertyGroup>
20+
21+
<PropertyGroup>
1822
<!-- Package properties -->
1923
<PackageId>WpfMessageBox</PackageId>
2024
<Authors>Otiel</Authors>
@@ -27,10 +31,6 @@
2731
<PackageTags>wpf messagebox message box</PackageTags>
2832
</PropertyGroup>
2933

30-
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
31-
<VersionSuffix>pre$([System.DateTime]::Now.ToString("yyyyMMdd-HHmmss"))</VersionSuffix>
32-
</PropertyGroup>
33-
3434
<ItemGroup>
3535
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
3636
<None Include="..\..\docs\images\Icon.64x64.png" Pack="true" PackagePath="\" />

0 commit comments

Comments
 (0)