diff --git a/src/BGR.Console.Tests/BGR.Console.Tests.csproj b/src/BGR.Console.Tests/BGR.Console.Tests.csproj
index 34e37a0..04da64e 100644
--- a/src/BGR.Console.Tests/BGR.Console.Tests.csproj
+++ b/src/BGR.Console.Tests/BGR.Console.Tests.csproj
@@ -2,25 +2,26 @@
false
+ 1591;
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
-
+
+
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/BGR.Console.Tests/Unit/OnnxTensorTests.cs b/src/BGR.Console.Tests/Unit/OnnxTensorTests.cs
index aaddc61..a6cf86a 100644
--- a/src/BGR.Console.Tests/Unit/OnnxTensorTests.cs
+++ b/src/BGR.Console.Tests/Unit/OnnxTensorTests.cs
@@ -1,5 +1,3 @@
-using BGR.Console.Removal.Onnx;
-
using Microsoft.ML.OnnxRuntime.Tensors;
namespace BGR.Console.Tests.Unit;
diff --git a/src/BGR.Console.Tests/Unit/RemovalCommandTests.cs b/src/BGR.Console.Tests/Unit/RemovalCommandTests.cs
index a65ca11..5c5e732 100644
--- a/src/BGR.Console.Tests/Unit/RemovalCommandTests.cs
+++ b/src/BGR.Console.Tests/Unit/RemovalCommandTests.cs
@@ -1,6 +1,4 @@
-using Microsoft.Extensions.Logging;
-
-using Spectre.Console.Cli;
+using System.Diagnostics.CodeAnalysis;
namespace BGR.Console.Tests.Unit;
@@ -28,6 +26,7 @@ public class RemovalCommandTests : IDisposable
[Theory]
[InlineData("output.png", false)]
[InlineData("", true)]
+ [SuppressMessage("Reliability", "CA2025:Do not pass 'IDisposable' instances into unawaited tasks", Justification = "Matching invocations")]
public async Task ExecuteAsync_WhenCalled_ItShouldProcessImage(string outputPath, bool includeMask)
{
var imagePath = $"{Guid.NewGuid()}.png";
diff --git a/src/BGR.Console/BGR.Console.csproj b/src/BGR.Console/BGR.Console.csproj
index 96c018c..a3c7715 100644
--- a/src/BGR.Console/BGR.Console.csproj
+++ b/src/BGR.Console/BGR.Console.csproj
@@ -38,17 +38,17 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+
+
+
diff --git a/src/BGR.Console/Removal/Onnx/OnnxTensor.cs b/src/BGR.Console/Removal/Onnx/OnnxTensor.cs
index 512704a..eab4212 100644
--- a/src/BGR.Console/Removal/Onnx/OnnxTensor.cs
+++ b/src/BGR.Console/Removal/Onnx/OnnxTensor.cs
@@ -1,6 +1,6 @@
namespace BGR.Console.Removal.Onnx;
-public class OnnxTensor : ITensor
+internal class OnnxTensor : ITensor
{
private readonly Tensor _tensor;
diff --git a/src/BGR.Console/Removal/RemovalCommand.cs b/src/BGR.Console/Removal/RemovalCommand.cs
index c7c6bee..49d21a6 100644
--- a/src/BGR.Console/Removal/RemovalCommand.cs
+++ b/src/BGR.Console/Removal/RemovalCommand.cs
@@ -1,5 +1,3 @@
-using System.Diagnostics;
-
namespace BGR.Console.Removal;
internal class RemovalCommand(
@@ -16,7 +14,19 @@ internal class RemovalCommand(
private readonly IAnsiConsole _console = console;
private readonly ILogger _logger = logger;
- public override async Task ExecuteAsync(CommandContext context, Settings settings)
+ public async Task ExecuteAsync(
+ CommandContext context,
+ Settings settings
+ )
+ {
+ return await ExecuteAsync(context, settings, CancellationToken.None);
+ }
+
+ protected override async Task ExecuteAsync(
+ CommandContext context,
+ Settings settings,
+ CancellationToken cancellationToken
+ )
{
await _console.Status()
.Spinner(Spinner.Known.Dots)
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index 141c0c3..fc63d4f 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -1,6 +1,6 @@
- net9.0
+ net10.0
enable
enable
latest
@@ -8,6 +8,7 @@
true
true
true
+ true