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/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 24ba3aef..6b9326c4 100644
--- a/src/ComputeSharp/ComputeSharp.csproj
+++ b/src/ComputeSharp/ComputeSharp.csproj
@@ -21,7 +21,7 @@
-
+
diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12DeviceExtensions.cs b/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12DeviceExtensions.cs
index 73abf797..8246cc6f 100644
--- a/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12DeviceExtensions.cs
+++ b/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12DeviceExtensions.cs
@@ -330,7 +330,7 @@ internal static unsafe class ID3D12DeviceExtensions
// an issue, as the initial state doesn't matter anyway and the readback buffer
// is still correctly transitioned when needed, so it can be safely ignored.
#if NET6_0_OR_GREATER
- // Temporary constant due to the value not being available in the D3D12MA TerraFX version
+ // This value is defined in the 22000 SDK, which is not currently referenced by D3D12MA
(D3D12_MESSAGE_ID)1328
#else
D3D12_MESSAGE_ID_CREATERESOURCE_STATE_IGNORED
diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.STGM.cs b/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.STGM.cs
deleted file mode 100644
index 74c6c521..00000000
--- a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.STGM.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
-
-// Ported from um/coml2api.h in the Windows SDK for Windows 10.0.20348.0
-// Original source is Copyright © Microsoft. All rights reserved.
-
-#if NET6_0_OR_GREATER
-
-namespace TerraFX.Interop.Windows;
-
-// TODO: remove this once TerraFX.Interop.Windows is updated
-internal static partial class STGM
-{
- public const int STGM_READ = 0x00000000;
-
- public const int STGM_WRITE = 0x00000001;
-
- public const int STGM_READWRITE = 0x00000002;
-}
-
-#endif
\ No newline at end of file
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/ComputeSharp.Tests.DeviceLost.csproj b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
index 0b020108..6b746778 100644
--- a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
+++ b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
@@ -4,6 +4,7 @@
net472;netcoreapp3.1;net6.0
false
AnyCPU;x64;ARM64
+ $(NoWarn);CA1416
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
diff --git a/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj b/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj
index f7707509..89e85fdd 100644
--- a/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj
+++ b/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj
@@ -4,6 +4,7 @@
net472;netcoreapp3.1;net6.0
false
AnyCPU;x64;ARM64
+ $(NoWarn);CA1416
diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
index 4c7117bd..afa1f9b8 100644
--- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
+++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
@@ -4,6 +4,7 @@
net472;netcoreapp3.1;net6.0
false
AnyCPU;x64;ARM64
+ $(NoWarn);CA1416