diff --git a/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj b/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj
index 856e2b5c..724f4a71 100644
--- a/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj
+++ b/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj
@@ -58,7 +58,7 @@
-
+
diff --git a/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32Application.cs b/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32Application.cs
index 0c6b9299..3f3d5a79 100644
--- a/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32Application.cs
+++ b/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32Application.cs
@@ -4,15 +4,15 @@ using ABI.Microsoft.Graphics.Canvas;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using TerraFX.Interop.WinRT;
-using Windows.Graphics.DirectX;
-using Windows.Graphics.Imaging;
using WinRT;
namespace ComputeSharp.SwapChain.D2D1.Backend;
+using BitmapSize = Windows.Graphics.Imaging.BitmapSize;
using CanvasDevice = Microsoft.Graphics.Canvas.CanvasDevice;
using CanvasDrawingSession = Microsoft.Graphics.Canvas.CanvasDrawingSession;
using CanvasSwapChain = Microsoft.Graphics.Canvas.CanvasSwapChain;
+using DirectXPixelFormat = Windows.Graphics.DirectX.DirectXPixelFormat;
using Windows = TerraFX.Interop.Windows.Windows;
///
diff --git a/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32ApplicationRunner.cs b/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32ApplicationRunner.cs
index 557cb7e0..a8431b6e 100644
--- a/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32ApplicationRunner.cs
+++ b/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32ApplicationRunner.cs
@@ -64,7 +64,7 @@ internal static unsafe class Win32ApplicationRunner
lpfnWndProc = &WindowProc,
hInstance = hInstance,
hCursor = Windows.LoadCursorW(HINSTANCE.NULL, IDC.IDC_ARROW),
- lpszClassName = (ushort*)name
+ lpszClassName = name
};
// Register the window class
@@ -82,7 +82,7 @@ internal static unsafe class Win32ApplicationRunner
hwnd = Windows.CreateWindowExW(
0,
windowClassEx.lpszClassName,
- (ushort*)title,
+ title,
WS.WS_OVERLAPPEDWINDOW,
Windows.CW_USEDEFAULT,
Windows.CW_USEDEFAULT,
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 b111e3a4..dc4db90d 100644
--- a/samples/ComputeSharp.SwapChain.D2D1.Cli/ComputeSharp.SwapChain.D2D1.Cli.csproj
+++ b/samples/ComputeSharp.SwapChain.D2D1.Cli/ComputeSharp.SwapChain.D2D1.Cli.csproj
@@ -45,7 +45,7 @@
-
+
diff --git a/samples/ComputeSharp.SwapChain/Backend/Win32ApplicationRunner.cs b/samples/ComputeSharp.SwapChain/Backend/Win32ApplicationRunner.cs
index d7445763..fbcfea2e 100644
--- a/samples/ComputeSharp.SwapChain/Backend/Win32ApplicationRunner.cs
+++ b/samples/ComputeSharp.SwapChain/Backend/Win32ApplicationRunner.cs
@@ -62,7 +62,7 @@ internal static unsafe class Win32ApplicationRunner
lpfnWndProc = &WindowProc,
hInstance = hInstance,
hCursor = Windows.LoadCursorW(HINSTANCE.NULL, IDC.IDC_ARROW),
- lpszClassName = (ushort*)name
+ lpszClassName = name
};
// Register the window class
@@ -80,7 +80,7 @@ internal static unsafe class Win32ApplicationRunner
hwnd = Windows.CreateWindowExW(
0,
windowClassEx.lpszClassName,
- (ushort*)title,
+ title,
WS.WS_OVERLAPPEDWINDOW,
Windows.CW_USEDEFAULT,
Windows.CW_USEDEFAULT,
diff --git a/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj b/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj
index 26f8145c..918842c3 100644
--- a/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj
+++ b/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj
@@ -13,7 +13,7 @@
-
+
diff --git a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj
index e0ef8c82..e4d9f5ba 100644
--- a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj
+++ b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj
@@ -13,7 +13,7 @@
-
+
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 83042274..419abbe0 100644
--- a/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj
+++ b/tests/ComputeSharp.D2D1.WinUI.Tests/ComputeSharp.D2D1.WinUI.Tests.csproj
@@ -60,7 +60,7 @@
-
+
diff --git a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
index cab8dd2a..baaa2e9a 100644
--- a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
+++ b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj
@@ -15,7 +15,7 @@
-
+
diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
index 4f1ca0b5..ce6edc05 100644
--- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
+++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
@@ -1,4 +1,4 @@
-
+
net8.0
AnyCPU;x64;ARM64
@@ -17,7 +17,7 @@
-
+