From 7effa3084f398625f03725f38e93b6297c5d2742 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Mon, 8 Jun 2026 17:51:49 +0200 Subject: [PATCH] Fix the Windows publish bundles for the Avalonia project layout publish.ps1 is a WPF-era script that was never updated for the current tree, and the "Publish x64/arm64" CI step aborted on two stale things: - It published ./ILSpy.BamlDecompiler/ILSpy.BamlDecompiler.csproj, which does not exist here (the BAML library is ICSharpCode.BamlDecompiler and already ships transitively via the ILSpy dependency graph) -> MSB1009. - It publishes the ReadyToRun plugin RID-specifically without restoring again, but the plugin declared no RuntimeIdentifiers, so the RID-less solution restore produced no win-x64/win-arm64 assets -> NETSDK1047. Drop the dead BamlDecompiler lines and give the plugin RuntimeIdentifiers mirroring ILSpy.csproj, so it restores and publishes for every platform the host supports (the plugin is pure managed and RID-agnostic). Assisted-by: Claude:claude-opus-4-8:Claude Code --- ILSpy.ReadyToRun/ILSpy.ReadyToRun.csproj | 5 +++++ publish.ps1 | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ILSpy.ReadyToRun/ILSpy.ReadyToRun.csproj b/ILSpy.ReadyToRun/ILSpy.ReadyToRun.csproj index a1f50dce8..b26cebe55 100644 --- a/ILSpy.ReadyToRun/ILSpy.ReadyToRun.csproj +++ b/ILSpy.ReadyToRun/ILSpy.ReadyToRun.csproj @@ -4,6 +4,11 @@ ILSpy.ReadyToRun.Plugin net10.0 + + win-x64;win-arm64;linux-x64;osx-arm64 False en-US true diff --git a/publish.ps1 b/publish.ps1 index b5992d53d..45fba14af 100644 --- a/publish.ps1 +++ b/publish.ps1 @@ -4,12 +4,9 @@ $output_x64_selfcontained = "./ILSpy/bin/Release/net10.0-windows/win-x64/publish dotnet publish ./ILSpy/ILSpy.csproj -c Release --no-restore --no-self-contained -r win-arm64 -o $output_arm64 dotnet publish ./ILSpy.ReadyToRun/ILSpy.ReadyToRun.csproj -c Release --no-restore --no-self-contained -r win-arm64 -o $output_arm64 -dotnet publish ./ILSpy.BamlDecompiler/ILSpy.BamlDecompiler.csproj -c Release --no-restore --no-self-contained -r win-arm64 -o $output_arm64 dotnet publish ./ILSpy/ILSpy.csproj -c Release --no-restore --no-self-contained -r win-x64 -o $output_x64 dotnet publish ./ILSpy.ReadyToRun/ILSpy.ReadyToRun.csproj -c Release --no-restore --no-self-contained -r win-x64 -o $output_x64 -dotnet publish ./ILSpy.BamlDecompiler/ILSpy.BamlDecompiler.csproj -c Release --no-restore --no-self-contained -r win-x64 -o $output_x64 dotnet publish ./ILSpy/ILSpy.csproj -c Release --no-restore --self-contained -r win-x64 -o $output_x64_selfcontained -dotnet publish ./ILSpy.ReadyToRun/ILSpy.ReadyToRun.csproj -c Release --no-restore --self-contained -r win-x64 -o $output_x64_selfcontained -dotnet publish ./ILSpy.BamlDecompiler/ILSpy.BamlDecompiler.csproj -c Release --no-restore --self-contained -r win-x64 -o $output_x64_selfcontained \ No newline at end of file +dotnet publish ./ILSpy.ReadyToRun/ILSpy.ReadyToRun.csproj -c Release --no-restore --self-contained -r win-x64 -o $output_x64_selfcontained \ No newline at end of file