From c9d963904673caea8298cf4df20b738a4fc6c817 Mon Sep 17 00:00:00 2001 From: Andrei Krasutski Date: Wed, 2 Oct 2024 21:29:37 +0300 Subject: [PATCH 1/2] Migrate to .NET 8.0 Added Publish Profiles Updated packages --- .gitignore | 2 +- PrintSample.csproj | 10 +++++----- Properties/PublishProfiles/win-arm64.pubxml | 13 +++++++++++++ Properties/PublishProfiles/win-x64.pubxml | 13 +++++++++++++ Properties/PublishProfiles/win-x86.pubxml | 13 +++++++++++++ 5 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 Properties/PublishProfiles/win-arm64.pubxml create mode 100644 Properties/PublishProfiles/win-x64.pubxml create mode 100644 Properties/PublishProfiles/win-x86.pubxml diff --git a/.gitignore b/.gitignore index 9491a2f..e91bd32 100644 --- a/.gitignore +++ b/.gitignore @@ -184,7 +184,7 @@ publish/ *.azurePubxml # Note: Comment the next line if you want to checkin your web deploy settings, # but database connection strings (with potential passwords) will be unencrypted -*.pubxml +# *.pubxml *.publishproj # Microsoft Azure Web App publish settings. Comment the next line if you want to diff --git a/PrintSample.csproj b/PrintSample.csproj index 6af7cc0..6de786e 100644 --- a/PrintSample.csproj +++ b/PrintSample.csproj @@ -1,12 +1,13 @@ - + WinExe - net6.0-windows10.0.19041.0 + net8.0-windows10.0.19041.0 10.0.17763.0 + 10.0.19041.38 PrintSample app.manifest x86;x64;arm64 - win10-x86;win10-x64;win10-arm64 + win-x86;win-x64;win-arm64 win10-$(Platform).pubxml true true @@ -26,8 +27,7 @@ - - + diff --git a/Properties/PublishProfiles/win-arm64.pubxml b/Properties/PublishProfiles/win-arm64.pubxml new file mode 100644 index 0000000..62e6e15 --- /dev/null +++ b/Properties/PublishProfiles/win-arm64.pubxml @@ -0,0 +1,13 @@ + + + + FileSystem + arm64 + win-arm64 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + True + False + False + True + + diff --git a/Properties/PublishProfiles/win-x64.pubxml b/Properties/PublishProfiles/win-x64.pubxml new file mode 100644 index 0000000..071f57c --- /dev/null +++ b/Properties/PublishProfiles/win-x64.pubxml @@ -0,0 +1,13 @@ + + + + FileSystem + x64 + win-x64 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + True + False + False + True + + diff --git a/Properties/PublishProfiles/win-x86.pubxml b/Properties/PublishProfiles/win-x86.pubxml new file mode 100644 index 0000000..6de977a --- /dev/null +++ b/Properties/PublishProfiles/win-x86.pubxml @@ -0,0 +1,13 @@ + + + + FileSystem + x86 + win-x86 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + True + False + False + True + + From ed3f412e4e8298b2ea401c4863f86eea876772e2 Mon Sep 17 00:00:00 2001 From: Andrei Krasutski Date: Wed, 2 Oct 2024 21:32:54 +0300 Subject: [PATCH 2/2] Extends Content Into TitleBar --- MainWindow.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 31c1174..dd6b0f7 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -14,6 +14,9 @@ public sealed partial class MainWindow : Window public MainWindow() { this.InitializeComponent(); + + ExtendsContentIntoTitleBar = true; + RegisterPrint(); }