diff --git a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
index 35861e7d7..e04241156 100644
--- a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
+++ b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
@@ -6,6 +6,7 @@
win-x64
false
AutoGeneratedProgram
+ false
True
diff --git a/ILSpy.BamlDecompiler.Tests/ILSpy.BamlDecompiler.Tests.csproj b/ILSpy.BamlDecompiler.Tests/ILSpy.BamlDecompiler.Tests.csproj
index 834ea7958..4655b74f8 100644
--- a/ILSpy.BamlDecompiler.Tests/ILSpy.BamlDecompiler.Tests.csproj
+++ b/ILSpy.BamlDecompiler.Tests/ILSpy.BamlDecompiler.Tests.csproj
@@ -6,6 +6,7 @@
win-x64
false
AutoGeneratedProgram
+ false
false
true
diff --git a/ILSpy.Tests/ILSpy.Tests.csproj b/ILSpy.Tests/ILSpy.Tests.csproj
index 17b4052aa..89ca30c6a 100644
--- a/ILSpy.Tests/ILSpy.Tests.csproj
+++ b/ILSpy.Tests/ILSpy.Tests.csproj
@@ -5,6 +5,7 @@
net8.0-windows
false
AutoGeneratedProgram
+ false
True
diff --git a/ILSpy.Tests/Workaround4564.cs b/ILSpy.Tests/Workaround4564.cs
index 500cd82e0..257afcc2b 100644
--- a/ILSpy.Tests/Workaround4564.cs
+++ b/ILSpy.Tests/Workaround4564.cs
@@ -1,3 +1,4 @@
// https://github.com/nunit/nunit/issues/4564
-[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10")]
\ No newline at end of file
+[assembly: System.Runtime.Versioning.SupportedOSPlatform("Windows10")]
+[assembly: System.Runtime.Versioning.TargetPlatform("Windows10")]
\ No newline at end of file