diff --git a/.gitignore b/.gitignore index 9491a2f..a662b69 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/MultiTerm.Protocols/MultiTerm.Protocols.csproj b/MultiTerm.Protocols/MultiTerm.Protocols.csproj index 2a81e61..0d16cdc 100644 --- a/MultiTerm.Protocols/MultiTerm.Protocols.csproj +++ b/MultiTerm.Protocols/MultiTerm.Protocols.csproj @@ -13,12 +13,12 @@ - PreserveNewest + Always %(Filename)%(Extension) - PreserveNewest + Always %(Filename)%(Extension) diff --git a/MultiTerm.Wpf/Assets/console.ico b/MultiTerm.Wpf/Assets/console.ico new file mode 100644 index 0000000..e3722d9 Binary files /dev/null and b/MultiTerm.Wpf/Assets/console.ico differ diff --git a/MultiTerm.Wpf/MultiTerm.Wpf.csproj b/MultiTerm.Wpf/MultiTerm.Wpf.csproj index 86713c1..9fc5953 100644 --- a/MultiTerm.Wpf/MultiTerm.Wpf.csproj +++ b/MultiTerm.Wpf/MultiTerm.Wpf.csproj @@ -1,45 +1,70 @@  - - WinExe - net6.0-windows - enable - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Code - - + + WinExe + net6.0-windows + enable + true + Assets\console.ico + True + + + + + + + + + + + + + + + + + + Always + + + Always + + + + + + + + + + + + + + + + + + + + + + + + + + Code + + + + + + + + + + + + diff --git a/MultiTerm.Wpf/Properties/PublishProfiles/ClickOnceProfile.pubxml b/MultiTerm.Wpf/Properties/PublishProfiles/ClickOnceProfile.pubxml new file mode 100644 index 0000000..5dcae9d --- /dev/null +++ b/MultiTerm.Wpf/Properties/PublishProfiles/ClickOnceProfile.pubxml @@ -0,0 +1,58 @@ + + + + + 11 + 1.0.0.* + True + Release + True + True + true + True + Web + http://multiterm.iet-hslu.ch/installer/ + True + True + True + False + Any CPU + MultiTerm + bin\Release\net6.0-windows\app.publish\ + bin\publish\ + HSLU IET + ClickOnce + False + False + False + sha256RSA + True + net6.0-windows + True + Foreground + False + index.html + BC1274DD90DC13A3CE1634A82AC005CDB6852B06 + MultiTerm.Wpf_TemporaryKey.pfx + True|2023-05-31T10:15:48.2252015Z; + + + + true + .NET Desktop Runtime 6.0.16 (x64) + + + + + + + + + Include + true + File + + + \ No newline at end of file diff --git a/MultiTerm.Wpf/View/ShellView.xaml b/MultiTerm.Wpf/View/ShellView.xaml index 9ebcc5c..3c5f278 100644 --- a/MultiTerm.Wpf/View/ShellView.xaml +++ b/MultiTerm.Wpf/View/ShellView.xaml @@ -77,6 +77,7 @@ + diff --git a/MultiTerm.Wpf/View/ShellView.xaml.cs b/MultiTerm.Wpf/View/ShellView.xaml.cs index 92a7e59..b8134f4 100644 --- a/MultiTerm.Wpf/View/ShellView.xaml.cs +++ b/MultiTerm.Wpf/View/ShellView.xaml.cs @@ -1,6 +1,7 @@ using MultiTerm.Core.ViewModel; using System.Diagnostics; using System.IO; +using System.Reflection; using System.Windows.Controls; namespace MultiTerm.Wpf.View; @@ -11,6 +12,9 @@ public partial class ShellView : UserControl { InitializeComponent(); this.DataContext = App.AppHost!.Services.GetService(typeof(ShellViewModel)); + + // set version item header + this.versionMenuItem.Header = $"MultiTerm Version {Assembly.GetExecutingAssembly().GetName().Version}"; } /// diff --git a/MultiTerm.sln b/MultiTerm.sln index bffee60..83f2384 100644 --- a/MultiTerm.sln +++ b/MultiTerm.sln @@ -13,7 +13,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MultiTerm.Wpf.CustomControl EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MultiTerm.Protocols", "MultiTerm.Protocols\MultiTerm.Protocols.csproj", "{D35B996A-91EE-4A6A-BA82-C74684AF4572}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiTerm.Protocols.Tests", "MultiTerm.Core.Tests\MultiTerm.Protocols.Tests.csproj", "{E75D3FF4-61FB-4A7F-A75D-B9E69A2FAE78}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MultiTerm.Protocols.Tests", "MultiTerm.Core.Tests\MultiTerm.Protocols.Tests.csproj", "{E75D3FF4-61FB-4A7F-A75D-B9E69A2FAE78}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution