From e097ade59f7449f76a4448acbff6dd72cfb205f2 Mon Sep 17 00:00:00 2001 From: Piers Sinclair Date: Sun, 31 May 2026 16:57:41 +1000 Subject: [PATCH] fix: remove --no-restore from publish so each platform restores its own RID assets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dotnet restore without -r only creates assets for net10.0 (no RID), so --no-restore on publish fails with NETSDK1047 when targeting win-x64 etc. Letting each dotnet publish handle its own restore fixes cross-compilation. dotnet pack --no-restore is fine — the initial restore covers net10.0 for packing. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b463358..4bbe184 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,7 +56,7 @@ jobs: - name: Publish all platforms run: | for rid in win-x64 win-arm64 osx-arm64 osx-x64 linux-x64; do - dotnet publish src/CardPool.Cli -p:PublishProfile=$rid -o dist/$rid --no-restore + dotnet publish src/CardPool.Cli -p:PublishProfile=$rid -o dist/$rid done - name: Create archives