From 37de7e8f545ae111c2b68a7890f525797cc9a259 Mon Sep 17 00:00:00 2001 From: Hirogen Date: Sun, 27 Mar 2022 13:36:47 +0200 Subject: [PATCH 1/7] update nuget packages! --- build/Build.cs | 10 +- build/Configuration/Configuration.cs | 15 +++ build/_build.csproj | 93 ++++++++++--------- .../ColumnizerLib.UnitTests.csproj | 4 +- src/JsonColumnizer/JsonColumnizer.csproj | 2 +- src/LogExpert.Tests/LogExpert.Tests.csproj | 6 +- src/LogExpert/LogExpert.csproj | 10 +- .../SftpFileSystemx86.csproj | 2 +- src/sftp-plugin/SftpFileSystemx64.csproj | 2 +- 9 files changed, 78 insertions(+), 66 deletions(-) create mode 100644 build/Configuration/Configuration.cs diff --git a/build/Build.cs b/build/Build.cs index 2f490e85..fb95c00c 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -5,9 +5,12 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; using JetBrains.Annotations; +using Nuke.Common.Tools.DotCover; +using Nuke.Common.Tools.ReportGenerator; using Microsoft.Build.Execution; using Nuke.Common; -using Nuke.Common.BuildServers; +using Nuke.Common.CI.AppVeyor; +using Nuke.Common.CI.AppVeyor.Configuration; using Nuke.Common.Execution; using Nuke.Common.Git; using Nuke.Common.IO; @@ -18,12 +21,10 @@ using Nuke.Common.Tools.GitVersion; using Nuke.Common.Tools.NuGet; using Nuke.Common.Tools.NUnit; -using Nuke.Common.Utilities; using Nuke.Common.Utilities.Collections; using Nuke.GitHub; using static Nuke.Common.EnvironmentInfo; using static Nuke.Common.IO.FileSystemTasks; -using static Nuke.Common.IO.PathConstruction; using static Nuke.Common.Tools.MSBuild.MSBuildTasks; using static Nuke.Common.Tools.DotNet.DotNetTasks; using static Nuke.Common.IO.TextTasks; @@ -42,7 +43,8 @@ class Build : NukeBuild /// - Microsoft VSCode https://nuke.build/vscode public static int Main() => Execute(x => x.Test); - [Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")] private readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release; + [Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")] + readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release; [Solution] readonly Solution Solution; [GitRepository] readonly GitRepository GitRepository; diff --git a/build/Configuration/Configuration.cs b/build/Configuration/Configuration.cs new file mode 100644 index 00000000..fd740356 --- /dev/null +++ b/build/Configuration/Configuration.cs @@ -0,0 +1,15 @@ +using System.ComponentModel; + +using Nuke.Common.Tooling; + +[TypeConverter(typeof(TypeConverter))] +public class Configuration : Enumeration +{ + public static Configuration Debug = new Configuration { Value = nameof(Debug) }; + public static Configuration Release = new Configuration { Value = nameof(Release) }; + + public static implicit operator string(Configuration configuration) + { + return configuration.Value; + } +} \ No newline at end of file diff --git a/build/_build.csproj b/build/_build.csproj index ccb775d3..2adbd6fd 100644 --- a/build/_build.csproj +++ b/build/_build.csproj @@ -1,48 +1,49 @@ - - - - Exe - netcoreapp2.0 - false - - False - CS0649;CS0169 - - - - - + + + + Exe + netcoreapp3.0 + + false + + False + CS0649;CS0169 + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + all runtime; build; native; contentfiles; analyzers - - - all - runtime; build; native; contentfiles; analyzers - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ColumnizerLib.UnitTests/ColumnizerLib.UnitTests.csproj b/src/ColumnizerLib.UnitTests/ColumnizerLib.UnitTests.csproj index b086efdc..120fd833 100644 --- a/src/ColumnizerLib.UnitTests/ColumnizerLib.UnitTests.csproj +++ b/src/ColumnizerLib.UnitTests/ColumnizerLib.UnitTests.csproj @@ -59,10 +59,10 @@ - 3.12.0 + 3.13.3 - 3.15.1 + 4.2.1 diff --git a/src/JsonColumnizer/JsonColumnizer.csproj b/src/JsonColumnizer/JsonColumnizer.csproj index e2dc7401..b4b16a89 100644 --- a/src/JsonColumnizer/JsonColumnizer.csproj +++ b/src/JsonColumnizer/JsonColumnizer.csproj @@ -72,7 +72,7 @@ - 12.0.2 + 13.0.1 diff --git a/src/LogExpert.Tests/LogExpert.Tests.csproj b/src/LogExpert.Tests/LogExpert.Tests.csproj index 5d92c994..4477ab1d 100644 --- a/src/LogExpert.Tests/LogExpert.Tests.csproj +++ b/src/LogExpert.Tests/LogExpert.Tests.csproj @@ -63,13 +63,13 @@ - 4.13.0 + 4.17.2 - 3.12.0 + 3.13.3 - 3.15.1 + 4.2.1 diff --git a/src/LogExpert/LogExpert.csproj b/src/LogExpert/LogExpert.csproj index d2e2dd5e..cff3c064 100644 --- a/src/LogExpert/LogExpert.csproj +++ b/src/LogExpert/LogExpert.csproj @@ -44,14 +44,8 @@ ..\Solution Items\Key.snk - - - False - ..\..\lib\CookComputing.XmlRpcV2.dll - - @@ -586,12 +580,12 @@ WinFormsUI - + + 4.6.7 -