diff --git a/benchmark/Benchmark.cs b/benchmark/Benchmark.cs
index 50153a3..8b01d32 100644
--- a/benchmark/Benchmark.cs
+++ b/benchmark/Benchmark.cs
@@ -57,8 +57,8 @@ public string GetValue(Summary summary, BenchmarkCase benchmarkCase)
[Config(typeof(Config))]
public class RealDataBenchmark
{
-
- private class Config : ManualConfig
+#pragma warning disable CA1812
+ private sealed class Config : ManualConfig
{
public Config()
{
diff --git a/benchmark/benchmark.csproj b/benchmark/benchmark.csproj
index 2d36be2..e92d5e0 100644
--- a/benchmark/benchmark.csproj
+++ b/benchmark/benchmark.csproj
@@ -6,6 +6,8 @@
enable
enable
true
+ true
+ AllEnabledByDefault
@@ -23,6 +25,4 @@
-
-
diff --git a/src/SimdUnicode.csproj b/src/SimdUnicode.csproj
index 0abeecf..0af1748 100644
--- a/src/SimdUnicode.csproj
+++ b/src/SimdUnicode.csproj
@@ -6,6 +6,7 @@
enable
true
+ true
+ AllEnabledByDefault
-
\ No newline at end of file
diff --git a/test/UTF8ValidationTests.cs b/test/UTF8ValidationTests.cs
index afa622b..866d602 100644
--- a/test/UTF8ValidationTests.cs
+++ b/test/UTF8ValidationTests.cs
@@ -332,8 +332,8 @@ public void SurrogateErrorTest()
[Fact]
public void BruteForceTest()
{
- // Random rand = new Random(); // Random instance for test
-
+#pragma warning disable CA5394
+ Random rand = new Random(); // Random instance for test
for (int i = 0; i < NumTrials; i++)
{
// Generate random UTF-8 sequence
diff --git a/test/tests.csproj b/test/tests.csproj
index 351e00f..0850f31 100644
--- a/test/tests.csproj
+++ b/test/tests.csproj
@@ -4,11 +4,11 @@
net8.0
enable
enable
-
false
true
true
-
+ true
+ AllEnabledByDefault
@@ -26,8 +26,5 @@
-
-
-