diff --git a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj
index 3a0fde04..d73eb132 100644
--- a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj
+++ b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj
@@ -3,6 +3,7 @@
Exe
net6.0
+ $(NoWarn);CA1416
diff --git a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj
index 8c1d4e59..d708f8f8 100644
--- a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj
+++ b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj
@@ -4,6 +4,7 @@
Exe
net472;netcoreapp3.1;net6.0
AnyCPU;x64;ARM64
+ $(NoWarn);CA1416
diff --git a/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj b/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj
index 6ccc804e..72c55e82 100644
--- a/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj
+++ b/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj
@@ -2,6 +2,7 @@
net6.0
+ $(NoWarn);CA1416
diff --git a/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj b/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj
index 5b0a45c3..c35936d1 100644
--- a/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj
+++ b/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj
@@ -4,6 +4,7 @@
Exe
net472;netcoreapp3.1;net6.0
AnyCPU;x64;ARM64
+ $(NoWarn);CA1416
diff --git a/samples/ComputeSharp.SwapChain/Backend/SwapChainApplication{T}.cs b/samples/ComputeSharp.SwapChain/Backend/SwapChainApplication{T}.cs
index cc15dc39..4931207c 100644
--- a/samples/ComputeSharp.SwapChain/Backend/SwapChainApplication{T}.cs
+++ b/samples/ComputeSharp.SwapChain/Backend/SwapChainApplication{T}.cs
@@ -3,8 +3,6 @@ using ComputeSharp.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
-#pragma warning disable CA1416
-
namespace ComputeSharp.SwapChain.Backend;
internal sealed class SwapChainApplication : Win32Application
diff --git a/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj b/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj
index d6fcfddc..17cd6bc6 100644
--- a/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj
+++ b/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj
@@ -5,6 +5,7 @@
net6.0
x64;ARM64
$(DefineConstants);SAMPLE_APP
+ $(NoWarn);CA1416
diff --git a/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.projitems b/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.projitems
index 51af99e0..ab355d3f 100644
--- a/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.projitems
+++ b/src/ComputeSharp.D2D1.NetStandard/ComputeSharp.D2D1.NetStandard.projitems
@@ -15,6 +15,8 @@
+
+
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1/Properties/AssemblyInfo.cs b/src/ComputeSharp.D2D1/Properties/AssemblyInfo.cs
index 196f23c5..d622c74a 100644
--- a/src/ComputeSharp.D2D1/Properties/AssemblyInfo.cs
+++ b/src/ComputeSharp.D2D1/Properties/AssemblyInfo.cs
@@ -1,3 +1,6 @@
using System.Runtime.CompilerServices;
+using System.Runtime.Versioning;
-[module: SkipLocalsInit]
\ No newline at end of file
+[module: SkipLocalsInit]
+
+[assembly: SupportedOSPlatform("windows6.1")]
\ No newline at end of file
diff --git a/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj b/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj
index 4c5b22ce..7c23d229 100644
--- a/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj
+++ b/src/ComputeSharp.Dynamic/ComputeSharp.Dynamic.csproj
@@ -4,7 +4,6 @@
bin\Release
ComputeSharp.Dynamic.xml
AnyCPU;x64;ARM64
- $(NoWarn);CA1416
diff --git a/src/ComputeSharp.Dynamic/Properties/AssemblyInfo.cs b/src/ComputeSharp.Dynamic/Properties/AssemblyInfo.cs
index 1360be6d..36c2fdf1 100644
--- a/src/ComputeSharp.Dynamic/Properties/AssemblyInfo.cs
+++ b/src/ComputeSharp.Dynamic/Properties/AssemblyInfo.cs
@@ -1,5 +1,8 @@
using System.Runtime.CompilerServices;
+using System.Runtime.Versioning;
[module: SkipLocalsInit]
+[assembly: SupportedOSPlatform("windows6.2")]
+
[assembly: InternalsVisibleTo("ComputeSharp.Tests.Internals")]
\ No newline at end of file
diff --git a/src/ComputeSharp.NetStandard/ComputeSharp.NetStandard.projitems b/src/ComputeSharp.NetStandard/ComputeSharp.NetStandard.projitems
index 5f0f1683..553bab65 100644
--- a/src/ComputeSharp.NetStandard/ComputeSharp.NetStandard.projitems
+++ b/src/ComputeSharp.NetStandard/ComputeSharp.NetStandard.projitems
@@ -24,6 +24,6 @@
-
+
\ No newline at end of file
diff --git a/src/ComputeSharp.NetStandard/System/Runtime/Versioning/OSPlatformAttribute.cs b/src/ComputeSharp.NetStandard/System/Runtime/Versioning/OSPlatformAttribute.cs
index ad3bf2ff..8a3497ee 100644
--- a/src/ComputeSharp.NetStandard/System/Runtime/Versioning/OSPlatformAttribute.cs
+++ b/src/ComputeSharp.NetStandard/System/Runtime/Versioning/OSPlatformAttribute.cs
@@ -1,12 +1,14 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using System.Diagnostics;
+
namespace System.Runtime.Versioning;
///
/// Base type for all platform-specific API attributes.
///
-
+[Conditional("DEBUG")]
internal abstract class OSPlatformAttribute : Attribute
{
private protected OSPlatformAttribute(string platformName)
diff --git a/src/ComputeSharp.NetStandard/System/Runtime/Versioning/SupportedOSVersionAttribute.cs b/src/ComputeSharp.NetStandard/System/Runtime/Versioning/SupportedOSPlatformAttribute.cs
similarity index 95%
rename from src/ComputeSharp.NetStandard/System/Runtime/Versioning/SupportedOSVersionAttribute.cs
rename to src/ComputeSharp.NetStandard/System/Runtime/Versioning/SupportedOSPlatformAttribute.cs
index 3cc8bf1d..3a108b87 100644
--- a/src/ComputeSharp.NetStandard/System/Runtime/Versioning/SupportedOSVersionAttribute.cs
+++ b/src/ComputeSharp.NetStandard/System/Runtime/Versioning/SupportedOSPlatformAttribute.cs
@@ -1,6 +1,8 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using System.Diagnostics;
+
namespace System.Runtime.Versioning;
///
@@ -26,6 +28,7 @@ namespace System.Runtime.Versioning;
AttributeTargets.Struct,
AllowMultiple = true,
Inherited = false)]
+[Conditional("DEBUG")]
internal sealed class SupportedOSPlatformAttribute : OSPlatformAttribute
{
public SupportedOSPlatformAttribute(string platformName)
diff --git a/src/ComputeSharp.Pix/Properties/AssemblyInfo.cs b/src/ComputeSharp.Pix/Properties/AssemblyInfo.cs
new file mode 100644
index 00000000..2acf37cd
--- /dev/null
+++ b/src/ComputeSharp.Pix/Properties/AssemblyInfo.cs
@@ -0,0 +1,3 @@
+using System.Runtime.Versioning;
+
+[assembly: SupportedOSPlatform("windows6.2")]
\ No newline at end of file
diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj
index 36bb73d1..6b9326c4 100644
--- a/src/ComputeSharp/ComputeSharp.csproj
+++ b/src/ComputeSharp/ComputeSharp.csproj
@@ -3,7 +3,6 @@
netstandard2.0;net6.0
bin\Release
ComputeSharp.xml
- $(NoWarn);CA1416
diff --git a/src/ComputeSharp/Graphics/Helpers/WICHelper.cs b/src/ComputeSharp/Graphics/Helpers/WICHelper.cs
index 64540ff4..c984e550 100644
--- a/src/ComputeSharp/Graphics/Helpers/WICHelper.cs
+++ b/src/ComputeSharp/Graphics/Helpers/WICHelper.cs
@@ -7,8 +7,6 @@ using ComputeSharp.Core.Extensions;
using ComputeSharp.Graphics.Extensions;
using TerraFX.Interop.Windows;
-#pragma warning disable CA1416
-
namespace ComputeSharp.Graphics.Helpers;
///
diff --git a/src/ComputeSharp/Properties/AssemblyInfo.cs b/src/ComputeSharp/Properties/AssemblyInfo.cs
index 2ef6928c..31f57316 100644
--- a/src/ComputeSharp/Properties/AssemblyInfo.cs
+++ b/src/ComputeSharp/Properties/AssemblyInfo.cs
@@ -1,7 +1,10 @@
using System.Runtime.CompilerServices;
+using System.Runtime.Versioning;
[module: SkipLocalsInit]
+[assembly: SupportedOSPlatform("windows6.2")]
+
[assembly: InternalsVisibleTo("ComputeSharp.Dynamic")]
[assembly: InternalsVisibleTo("ComputeSharp.Pix")]
[assembly: InternalsVisibleTo("ComputeSharp.Uwp")]
diff --git a/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj b/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj
index 6d8a6c6d..4cf5b04c 100644
--- a/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj
+++ b/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj
@@ -3,6 +3,7 @@
net472;netcoreapp3.1;net6.0
false
+ $(NoWarn);CA1416
diff --git a/tests/ComputeSharp.Dynamic.NuGet/Program.cs b/tests/ComputeSharp.Dynamic.NuGet/Program.cs
index 7792c298..55fd170e 100644
--- a/tests/ComputeSharp.Dynamic.NuGet/Program.cs
+++ b/tests/ComputeSharp.Dynamic.NuGet/Program.cs
@@ -1,7 +1,14 @@
using System.Diagnostics;
using System.Linq;
+#if NET6_0_OR_GREATER
+using System.Runtime.Versioning;
+#endif
using ComputeSharp;
+#if NET6_0_OR_GREATER
+[assembly: SupportedOSPlatform("windows6.2")]
+#endif
+
float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray();
// Create the graphics buffer
diff --git a/tests/ComputeSharp.NuGet/Program.cs b/tests/ComputeSharp.NuGet/Program.cs
index a0b3885d..b357113c 100644
--- a/tests/ComputeSharp.NuGet/Program.cs
+++ b/tests/ComputeSharp.NuGet/Program.cs
@@ -1,7 +1,14 @@
using System.Diagnostics;
using System.Linq;
+#if NET6_0_OR_GREATER
+using System.Runtime.Versioning;
+#endif
using ComputeSharp;
+#if NET6_0_OR_GREATER
+[assembly: SupportedOSPlatform("windows6.2")]
+#endif
+
float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray();
// Create the graphics buffer
diff --git a/tests/ComputeSharp.Pix.NuGet/Program.cs b/tests/ComputeSharp.Pix.NuGet/Program.cs
index 9544e448..9fa7a379 100644
--- a/tests/ComputeSharp.Pix.NuGet/Program.cs
+++ b/tests/ComputeSharp.Pix.NuGet/Program.cs
@@ -1,7 +1,14 @@
using System.Diagnostics;
using System.Linq;
+#if NET6_0_OR_GREATER
+using System.Runtime.Versioning;
+#endif
using ComputeSharp;
+#if NET6_0_OR_GREATER
+[assembly: SupportedOSPlatform("windows6.2")]
+#endif
+
float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray();
// Create the graphics buffer
diff --git a/tests/ComputeSharp.Tests.DeviceLost/Helpers/GraphicsDeviceHelper.cs b/tests/ComputeSharp.Tests.DeviceLost/Helpers/GraphicsDeviceHelper.cs
index 8160a5fa..cbc4499c 100644
--- a/tests/ComputeSharp.Tests.DeviceLost/Helpers/GraphicsDeviceHelper.cs
+++ b/tests/ComputeSharp.Tests.DeviceLost/Helpers/GraphicsDeviceHelper.cs
@@ -5,8 +5,6 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
-#pragma warning disable CA1416
-
namespace ComputeSharp.Tests.DeviceLost.Helpers;
///
diff --git a/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj b/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj
index ce64d187..c9bca46d 100644
--- a/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj
+++ b/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj
@@ -4,6 +4,7 @@
net472;netcoreapp3.1;net6.0
false
AnyCPU;x64;ARM64
+ $(NoWarn);CA1416
diff --git a/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj b/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj
index ca713b52..2ce013d7 100644
--- a/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj
+++ b/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj
@@ -5,6 +5,7 @@
net6.0
AnyCPU;x64;ARM64
enable
+ $(NoWarn);CA1416