diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index 967121fc..d33abc62 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -142,7 +142,9 @@ jobs:
# Also publish the NativeAOT test when .NET 7 is used
- if: matrix.framework == 'net7.0'
name: Publish ComputeSharp.SwapChain.Cli with NativeAOT
- run: dotnet publish samples\ComputeSharp.SwapChain.Cli\ComputeSharp.SwapChain.Cli.csproj -c Release -f net7.0 -r win-x64 -v n
+ run: >
+ $env:COMPUTESHARP_SWAPCHAIN_CLI_PUBLISH_AOT='true';
+ dotnet publish samples\ComputeSharp.SwapChain.Cli\ComputeSharp.SwapChain.Cli.csproj -c Release -f net7.0 -r win-x64 -v n
- if: matrix.framework == 'net7.0'
name: Run ComputeSharp.SwapChain.Cli
run: >
diff --git a/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj b/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj
index bacfeee1..b12c54b2 100644
--- a/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj
+++ b/samples/ComputeSharp.SwapChain.Cli/ComputeSharp.SwapChain.Cli.csproj
@@ -17,8 +17,14 @@
icon.ico
-
-
+
+
true
true
true