diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1056dad..526cae6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,13 +28,13 @@ stages: - task: NuGetToolInstaller@1 inputs: - versionSpec: '5.5.1' + versionSpec: '5.8.0' - task: UseDotNet@2 - displayName: 'Use .NET Core sdk 3.1.2' + displayName: 'Install .NET Core SDK 5.0' inputs: packageType: sdk - version: 3.1.201 + version: 5.0.100 - task: DotNetCoreCLI@2 displayName: Build @@ -57,7 +57,7 @@ stages: - task: NuGetCommand@2 displayName: 'Publish to wpf-notifyicon feed' - condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) + condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) inputs: command: 'push' versioningScheme: byBuildNumber diff --git a/src/Changelog.txt b/src/Changelog.txt index cda6bed..da62dee 100644 --- a/src/Changelog.txt +++ b/src/Changelog.txt @@ -1,11 +1,13 @@ hardcodet.net NotifyIcon for WPF - Changelog -Copyright (c) 2009-2020 Philipp Sumi +Copyright (c) 2009-2021 Philipp Sumi Contact and Information: http://www.hardcodet.net -1.0.9 (2020.xx.xx) +1.1.0 (2021.03.27) ***** -ADD Added dotnet core 3.0 and 3.1 support +ADD Added dotnet core 3.1 and .Net 5 support. +ADD Added strong naming for assembly. +FIX When change dpi, the ContextMenu's position was wrong. 1.0.8 (2016.04.02) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index cc136e1..872f123 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,13 +1,17 @@ + net45;net462;net472;netcoreapp3.1;net5.0-windows latest true true true $(MSBuildProjectName.Contains('Sample')) - Copyright (c) 2009-2020 Philipp Sumi + True + embedded + + Copyright (c) 2009-2021 Philipp Sumi hardcodet.net - Philipp Sumi + Philipp Sumi, Robin Krom, Jan Karger icon.png https://github.com/hardcodet/wpf-notifyicon git @@ -18,7 +22,6 @@ Source code and extensive sample application available at http://www.hardcodet.net/projects/wpf-notifyicon NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform. - NotifyIcon WPF Tray Notify ToolTip Popup Balloon Toast @@ -27,18 +30,15 @@ Source code and extensive sample application available at http://www.hardcodet.n - DEBUG;TRACE - True true - embedded - false - - true - embedded - True - + + + all + runtime; build; native; contentfiles; analyzers + + @@ -48,11 +48,14 @@ Source code and extensive sample application available at http://www.hardcodet.n true + + true + ..\NotifyIconWpf.snk + false + true + + - - all - runtime; build; native; contentfiles; analyzers - diff --git a/src/Sample Project/App.xaml b/src/NotifyIconWpf.Sample.ShowCases/App.xaml similarity index 86% rename from src/Sample Project/App.xaml rename to src/NotifyIconWpf.Sample.ShowCases/App.xaml index 318ca54..e464665 100644 --- a/src/Sample Project/App.xaml +++ b/src/NotifyIconWpf.Sample.ShowCases/App.xaml @@ -1,4 +1,4 @@ - diff --git a/src/Sample Project/App.xaml.cs b/src/NotifyIconWpf.Sample.ShowCases/App.xaml.cs similarity index 79% rename from src/Sample Project/App.xaml.cs rename to src/NotifyIconWpf.Sample.ShowCases/App.xaml.cs index 9b6d915..89722a2 100644 --- a/src/Sample Project/App.xaml.cs +++ b/src/NotifyIconWpf.Sample.ShowCases/App.xaml.cs @@ -1,6 +1,6 @@ using System.Windows; -namespace Samples +namespace NotifyIconWpf.Sample.ShowCases { /// /// Interaction logic for App.xaml diff --git a/src/Sample Project/Commands/CloseWindowCommand.cs b/src/NotifyIconWpf.Sample.ShowCases/Commands/CloseWindowCommand.cs similarity index 91% rename from src/Sample Project/Commands/CloseWindowCommand.cs rename to src/NotifyIconWpf.Sample.ShowCases/Commands/CloseWindowCommand.cs index 00930e8..bba39a5 100644 --- a/src/Sample Project/Commands/CloseWindowCommand.cs +++ b/src/NotifyIconWpf.Sample.ShowCases/Commands/CloseWindowCommand.cs @@ -1,7 +1,7 @@ using System.Windows; using System.Windows.Input; -namespace Samples.Commands +namespace NotifyIconWpf.Sample.ShowCases.Commands { /// /// Closes the current window. diff --git a/src/Sample Project/Commands/CommandBase.cs b/src/NotifyIconWpf.Sample.ShowCases/Commands/CommandBase.cs similarity index 99% rename from src/Sample Project/Commands/CommandBase.cs rename to src/NotifyIconWpf.Sample.ShowCases/Commands/CommandBase.cs index 040a21b..666b1d6 100644 --- a/src/Sample Project/Commands/CommandBase.cs +++ b/src/NotifyIconWpf.Sample.ShowCases/Commands/CommandBase.cs @@ -6,7 +6,7 @@ using System.Windows.Markup; using System.Windows.Media; using Hardcodet.Wpf.TaskbarNotification; -namespace Samples.Commands +namespace NotifyIconWpf.Sample.ShowCases.Commands { /// /// Basic implementation of the diff --git a/src/Sample Project/Commands/HideSampleWindowCommand.cs b/src/NotifyIconWpf.Sample.ShowCases/Commands/HideSampleWindowCommand.cs similarity index 91% rename from src/Sample Project/Commands/HideSampleWindowCommand.cs rename to src/NotifyIconWpf.Sample.ShowCases/Commands/HideSampleWindowCommand.cs index 0e5be4e..239ef0a 100644 --- a/src/Sample Project/Commands/HideSampleWindowCommand.cs +++ b/src/NotifyIconWpf.Sample.ShowCases/Commands/HideSampleWindowCommand.cs @@ -1,7 +1,7 @@ using System.Windows; using System.Windows.Input; -namespace Samples.Commands +namespace NotifyIconWpf.Sample.ShowCases.Commands { /// /// Hides the main window. diff --git a/src/Sample Project/Commands/ShowSampleWindowCommand.cs b/src/NotifyIconWpf.Sample.ShowCases/Commands/ShowSampleWindowCommand.cs similarity index 91% rename from src/Sample Project/Commands/ShowSampleWindowCommand.cs rename to src/NotifyIconWpf.Sample.ShowCases/Commands/ShowSampleWindowCommand.cs index f954968..5ff656e 100644 --- a/src/Sample Project/Commands/ShowSampleWindowCommand.cs +++ b/src/NotifyIconWpf.Sample.ShowCases/Commands/ShowSampleWindowCommand.cs @@ -1,7 +1,7 @@ using System.Windows; using System.Windows.Input; -namespace Samples.Commands +namespace NotifyIconWpf.Sample.ShowCases.Commands { /// /// Shows the main window. diff --git a/src/Sample Project/Icons/Bulb.ico b/src/NotifyIconWpf.Sample.ShowCases/Icons/Bulb.ico similarity index 100% rename from src/Sample Project/Icons/Bulb.ico rename to src/NotifyIconWpf.Sample.ShowCases/Icons/Bulb.ico diff --git a/src/Sample Project/Icons/Computers.ico b/src/NotifyIconWpf.Sample.ShowCases/Icons/Computers.ico similarity index 100% rename from src/Sample Project/Icons/Computers.ico rename to src/NotifyIconWpf.Sample.ShowCases/Icons/Computers.ico diff --git a/src/Sample Project/Icons/Error.ico b/src/NotifyIconWpf.Sample.ShowCases/Icons/Error.ico similarity index 100% rename from src/Sample Project/Icons/Error.ico rename to src/NotifyIconWpf.Sample.ShowCases/Icons/Error.ico diff --git a/src/Sample Project/Icons/Inactive.ico b/src/NotifyIconWpf.Sample.ShowCases/Icons/Inactive.ico similarity index 100% rename from src/Sample Project/Icons/Inactive.ico rename to src/NotifyIconWpf.Sample.ShowCases/Icons/Inactive.ico diff --git a/src/Sample Project/Icons/NetDrives.ico b/src/NotifyIconWpf.Sample.ShowCases/Icons/NetDrives.ico similarity index 100% rename from src/Sample Project/Icons/NetDrives.ico rename to src/NotifyIconWpf.Sample.ShowCases/Icons/NetDrives.ico diff --git a/src/Sample Project/Images/Add.png b/src/NotifyIconWpf.Sample.ShowCases/Images/Add.png similarity index 100% rename from src/Sample Project/Images/Add.png rename to src/NotifyIconWpf.Sample.ShowCases/Images/Add.png diff --git a/src/Sample Project/Images/Close.png b/src/NotifyIconWpf.Sample.ShowCases/Images/Close.png similarity index 100% rename from src/Sample Project/Images/Close.png rename to src/NotifyIconWpf.Sample.ShowCases/Images/Close.png diff --git a/src/Sample Project/Images/Info.png b/src/NotifyIconWpf.Sample.ShowCases/Images/Info.png similarity index 100% rename from src/Sample Project/Images/Info.png rename to src/NotifyIconWpf.Sample.ShowCases/Images/Info.png diff --git a/src/Sample Project/Images/Logo.png b/src/NotifyIconWpf.Sample.ShowCases/Images/Logo.png similarity index 100% rename from src/Sample Project/Images/Logo.png rename to src/NotifyIconWpf.Sample.ShowCases/Images/Logo.png diff --git a/src/Sample Project/Images/Preferences.png b/src/NotifyIconWpf.Sample.ShowCases/Images/Preferences.png similarity index 100% rename from src/Sample Project/Images/Preferences.png rename to src/NotifyIconWpf.Sample.ShowCases/Images/Preferences.png diff --git a/src/Sample Project/Images/Remove.png b/src/NotifyIconWpf.Sample.ShowCases/Images/Remove.png similarity index 100% rename from src/Sample Project/Images/Remove.png rename to src/NotifyIconWpf.Sample.ShowCases/Images/Remove.png diff --git a/src/Sample Project/Main.xaml b/src/NotifyIconWpf.Sample.ShowCases/Main.xaml similarity index 88% rename from src/Sample Project/Main.xaml rename to src/NotifyIconWpf.Sample.ShowCases/Main.xaml index 38e32fc..d2ef1a2 100644 --- a/src/Sample Project/Main.xaml +++ b/src/NotifyIconWpf.Sample.ShowCases/Main.xaml @@ -1,5 +1,5 @@  + TextWrapping="Wrap" Text="{Binding Path=SampleTitle}"/>