diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a0f0424..ea62dcc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,8 +7,7 @@ trigger: batch: true branches: include: - - develop - - release/* + - master - feature/* exclude: - gh-pages @@ -32,24 +31,17 @@ stages: versionSpec: '5.5.1' - task: UseDotNet@2 - displayName: 'Use .NET Core sdk 3.1.6' + displayName: 'Use .NET Core sdk 5.0' inputs: packageType: sdk - version: 3.1.302 + version: 5.0.100 - - task: NuGetCommand@2 - displayName: NuGet restore + - task: DotNetCoreCLI@2 + displayName: Build inputs: - command: 'restore' - restoreSolution: '$(solution)' - feedsToUse: config - - - task: MSBuild@1 - displayName: Build and package - inputs: - solution: '$(solution)' - platform: $(buildPlatform) - configuration: $(buildConfiguration) + command: build + projects: '$(solution)' + arguments: '--configuration $(buildConfiguration) /p:Platform="$(buildPlatform)"' - task: CopyFiles@2 displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)' diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 849d6d3..1b33b4c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -22,12 +22,6 @@ Source code and extensive sample application available at http://www.hardcodet.n NotifyIcon WPF Tray Notify ToolTip Popup Balloon Toast - - true - - - false - true @@ -46,6 +40,13 @@ Source code and extensive sample application available at http://www.hardcodet.n True + + + all + runtime; build; native; contentfiles; analyzers + + + @@ -61,10 +62,6 @@ Source code and extensive sample application available at http://www.hardcodet.n - - 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}"/>