diff --git a/samples/ComputeSharp.SwapChain.D2D1.Cli/ComputeSharp.SwapChain.D2D1.Cli.csproj b/samples/ComputeSharp.SwapChain.D2D1.Cli/ComputeSharp.SwapChain.D2D1.Cli.csproj
index 88cafc01..40de276f 100644
--- a/samples/ComputeSharp.SwapChain.D2D1.Cli/ComputeSharp.SwapChain.D2D1.Cli.csproj
+++ b/samples/ComputeSharp.SwapChain.D2D1.Cli/ComputeSharp.SwapChain.D2D1.Cli.csproj
@@ -30,7 +30,7 @@
-
+
diff --git a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj
index ea4e31e8..e880b53b 100644
--- a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj
+++ b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj
@@ -12,8 +12,8 @@
-
-
+
+
diff --git a/tests/ComputeSharp.D2D1.UI.Tests/PixelShaderEffectTests.cs b/tests/ComputeSharp.D2D1.UI.Tests/PixelShaderEffectTests.cs
index 909d8986..7440367f 100644
--- a/tests/ComputeSharp.D2D1.UI.Tests/PixelShaderEffectTests.cs
+++ b/tests/ComputeSharp.D2D1.UI.Tests/PixelShaderEffectTests.cs
@@ -216,7 +216,7 @@ public partial class PixelShaderEffectTests
int cacheOutput;
hresult = d2D1Effect.Get()->GetValue(
- index: (uint)D2D1_PROPERTY.D2D1_PROPERTY_CACHED,
+ index: unchecked((uint)D2D1_PROPERTY.D2D1_PROPERTY_CACHED),
type: D2D1_PROPERTY_TYPE.D2D1_PROPERTY_TYPE_BOOL,
data: (byte*)&cacheOutput,
dataSize: sizeof(int));
@@ -228,7 +228,7 @@ public partial class PixelShaderEffectTests
D2D1_BUFFER_PRECISION d2D1BufferPrecision;
hresult = d2D1Effect.Get()->GetValue(
- index: (uint)D2D1_PROPERTY.D2D1_PROPERTY_PRECISION,
+ index: unchecked((uint)D2D1_PROPERTY.D2D1_PROPERTY_PRECISION),
type: D2D1_PROPERTY_TYPE.D2D1_PROPERTY_TYPE_UNKNOWN,
data: (byte*)&d2D1BufferPrecision,
dataSize: sizeof(D2D1_BUFFER_PRECISION));
@@ -280,7 +280,7 @@ public partial class PixelShaderEffectTests
int cacheOutput = 1;
int hresult = d2D1Effect.Get()->SetValue(
- index: (uint)D2D1_PROPERTY.D2D1_PROPERTY_CACHED,
+ index: unchecked((uint)D2D1_PROPERTY.D2D1_PROPERTY_CACHED),
type: D2D1_PROPERTY_TYPE.D2D1_PROPERTY_TYPE_BOOL,
data: (byte*)&cacheOutput,
dataSize: sizeof(int));
@@ -292,7 +292,7 @@ public partial class PixelShaderEffectTests
D2D1_BUFFER_PRECISION d2D1BufferPrecision = D2D1_BUFFER_PRECISION.D2D1_BUFFER_PRECISION_32BPC_FLOAT;
hresult = d2D1Effect.Get()->SetValue(
- index: (uint)D2D1_PROPERTY.D2D1_PROPERTY_PRECISION,
+ index: unchecked((uint)D2D1_PROPERTY.D2D1_PROPERTY_PRECISION),
type: D2D1_PROPERTY_TYPE.D2D1_PROPERTY_TYPE_UNKNOWN,
data: (byte*)&d2D1BufferPrecision,
dataSize: sizeof(D2D1_BUFFER_PRECISION));
diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj b/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj
index f71862c2..a86f20f3 100644
--- a/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj
+++ b/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj
@@ -55,7 +55,7 @@
-
+
diff --git a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
index 54517b20..904e6b5e 100644
--- a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
+++ b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
@@ -15,8 +15,8 @@
-
-
+
+
diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
index 4604dc32..61a3d30a 100644
--- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
+++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
@@ -17,7 +17,7 @@
-
+