From a893ff76523b9b1a03e3be3f35b7ac6983bc2733 Mon Sep 17 00:00:00 2001 From: Otiel Date: Sun, 30 Nov 2025 00:08:38 +0100 Subject: [PATCH 1/3] Reorder csproj --- src/Demo/Demo.csproj | 9 +++++++-- src/WpfMessageBox/WpfMessageBox.csproj | 13 ++++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/Demo/Demo.csproj b/src/Demo/Demo.csproj index e830460..d4a8397 100644 --- a/src/Demo/Demo.csproj +++ b/src/Demo/Demo.csproj @@ -1,18 +1,23 @@  + + + 1.0.0 + + WpfMessageBoxDemo Application used to demonstrate the capabilities of the WpfMessageBox WpfMessageBoxDemo ⓒ Otiel $([System.DateTime]::Now.Year) + + false WinExe net48;net9.0-windows;net10.0-windows true - - 1.0.0 diff --git a/src/WpfMessageBox/WpfMessageBox.csproj b/src/WpfMessageBox/WpfMessageBox.csproj index 1a69231..334ae3a 100644 --- a/src/WpfMessageBox/WpfMessageBox.csproj +++ b/src/WpfMessageBox/WpfMessageBox.csproj @@ -1,20 +1,27 @@  + + + 1.3.0 + + WpfMessageBox A WPF message box, with optional features like custom buttons, textbox and checkbox. WpfMessageBox ⓒ Otiel $([System.DateTime]::Now.Year) + + false net48;net9.0-windows;net10.0-windows true - - 1.3.0 - true true + + + WpfMessageBox Otiel From 146d6106ba107d218577aca848108f0f4b5a8dc6 Mon Sep 17 00:00:00 2001 From: Otiel Date: Sun, 30 Nov 2025 00:13:44 +0100 Subject: [PATCH 2/3] Add Directory.Build.props to mutualize csproj properties --- src/Demo/Demo.csproj | 7 ------- src/Directory.Build.props | 13 +++++++++++++ src/WpfMessageBox.sln | 1 + src/WpfMessageBox/WpfMessageBox.csproj | 7 ------- 4 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 src/Directory.Build.props diff --git a/src/Demo/Demo.csproj b/src/Demo/Demo.csproj index d4a8397..120e80e 100644 --- a/src/Demo/Demo.csproj +++ b/src/Demo/Demo.csproj @@ -10,20 +10,13 @@ WpfMessageBoxDemo Application used to demonstrate the capabilities of the WpfMessageBox WpfMessageBoxDemo - ⓒ Otiel $([System.DateTime]::Now.Year) - false WinExe - net48;net9.0-windows;net10.0-windows true - - pre$([System.DateTime]::Now.ToString("yyyyMMdd-HHmmss")) - - diff --git a/src/Directory.Build.props b/src/Directory.Build.props new file mode 100644 index 0000000..81ca9c3 --- /dev/null +++ b/src/Directory.Build.props @@ -0,0 +1,13 @@ + + + + ⓒ Otiel $([System.DateTime]::Now.Year) + false + net48;net9.0-windows;net10.0-windows + + + + pre$([System.DateTime]::Now.ToString("yyyyMMdd-HHmmss")) + + + diff --git a/src/WpfMessageBox.sln b/src/WpfMessageBox.sln index faac044..c646cdf 100644 --- a/src/WpfMessageBox.sln +++ b/src/WpfMessageBox.sln @@ -16,6 +16,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionIt ..\README.md = ..\README.md ..\.github\workflows\dotnet.yml = ..\.github\workflows\dotnet.yml global.json = global.json + Directory.Build.props = Directory.Build.props EndProjectSection EndProject Global diff --git a/src/WpfMessageBox/WpfMessageBox.csproj b/src/WpfMessageBox/WpfMessageBox.csproj index 334ae3a..959a659 100644 --- a/src/WpfMessageBox/WpfMessageBox.csproj +++ b/src/WpfMessageBox/WpfMessageBox.csproj @@ -10,12 +10,9 @@ WpfMessageBox A WPF message box, with optional features like custom buttons, textbox and checkbox. WpfMessageBox - ⓒ Otiel $([System.DateTime]::Now.Year) - false - net48;net9.0-windows;net10.0-windows true true true @@ -34,10 +31,6 @@ wpf messagebox message box - - pre$([System.DateTime]::Now.ToString("yyyyMMdd-HHmmss")) - - From f0da2d7dea3960ed9c2c40bb7e0eff97d7a3b35c Mon Sep 17 00:00:00 2001 From: Otiel Date: Sun, 30 Nov 2025 00:14:10 +0100 Subject: [PATCH 3/3] Add TreatWarningsAsErrors --- src/Directory.Build.props | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 81ca9c3..af29133 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -4,6 +4,8 @@ ⓒ Otiel $([System.DateTime]::Now.Year) false net48;net9.0-windows;net10.0-windows + true + true