From 63f2c4b71e9b26736f8005410aa13ad960b46061 Mon Sep 17 00:00:00 2001 From: Scott Holodak Date: Mon, 18 Dec 2023 11:52:44 -0500 Subject: [PATCH] WiP --- Directory.Build.props | 6 +++--- Source/Directory.Build.props | 2 +- .../Sholo.CommandLine.Containers.csproj | 2 +- Source/Sholo.CommandLine/CommandLineApp.cs | 4 ++++ Source/Sholo.CommandLine/Sholo.CommandLine.csproj | 8 ++++---- Tests/Directory.Build.props | 2 +- .../Sholo.CommandLine.Test/Sholo.CommandLine.Test.csproj | 2 +- global.json | 5 +++-- 8 files changed, 18 insertions(+), 13 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 0b94847..cb84fd2 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -26,9 +26,9 @@ - - - + + + diff --git a/Source/Directory.Build.props b/Source/Directory.Build.props index 4835981..b868874 100644 --- a/Source/Directory.Build.props +++ b/Source/Directory.Build.props @@ -17,7 +17,7 @@ - + diff --git a/Source/Sholo.CommandLine.Containers/Sholo.CommandLine.Containers.csproj b/Source/Sholo.CommandLine.Containers/Sholo.CommandLine.Containers.csproj index 58132a4..61741d4 100644 --- a/Source/Sholo.CommandLine.Containers/Sholo.CommandLine.Containers.csproj +++ b/Source/Sholo.CommandLine.Containers/Sholo.CommandLine.Containers.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 diff --git a/Source/Sholo.CommandLine/CommandLineApp.cs b/Source/Sholo.CommandLine/CommandLineApp.cs index 1b04127..8edcabe 100644 --- a/Source/Sholo.CommandLine/CommandLineApp.cs +++ b/Source/Sholo.CommandLine/CommandLineApp.cs @@ -46,7 +46,9 @@ void CancelHandler(object o, ConsoleCancelEventArgs e) if (!cts.IsCancellationRequested) { +#pragma warning disable VSTHRD103 cts.Cancel(); +#pragma warning restore VSTHRD103 e.Cancel = true; } else @@ -63,7 +65,9 @@ void UnloadingHandler(AssemblyLoadContext ctx) if (!cts.IsCancellationRequested) { +#pragma warning disable VSTHRD103 cts.Cancel(); +#pragma warning restore VSTHRD103 } // ReSharper restore AccessToDisposedClosure diff --git a/Source/Sholo.CommandLine/Sholo.CommandLine.csproj b/Source/Sholo.CommandLine/Sholo.CommandLine.csproj index a02d4c0..1463948 100644 --- a/Source/Sholo.CommandLine/Sholo.CommandLine.csproj +++ b/Source/Sholo.CommandLine/Sholo.CommandLine.csproj @@ -1,14 +1,14 @@ - net7.0 + net8.0 - - - + + + diff --git a/Tests/Directory.Build.props b/Tests/Directory.Build.props index 893680b..be0d2bd 100644 --- a/Tests/Directory.Build.props +++ b/Tests/Directory.Build.props @@ -11,7 +11,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/Tests/Sholo.CommandLine.Test/Sholo.CommandLine.Test.csproj b/Tests/Sholo.CommandLine.Test/Sholo.CommandLine.Test.csproj index 553b400..91e0412 100644 --- a/Tests/Sholo.CommandLine.Test/Sholo.CommandLine.Test.csproj +++ b/Tests/Sholo.CommandLine.Test/Sholo.CommandLine.Test.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 diff --git a/global.json b/global.json index eec76ea..f7fb55b 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,7 @@ { "sdk": { - "rollForward": "latestMajor", - "version": "6.0.400" + "version": "8.0.100", + "rollForward": "latestMinor", + "allowPrerelease": false } }