From c63eb2988cd4bb9cbcd43c8d40dc703e1e888d80 Mon Sep 17 00:00:00 2001 From: Renan Cammarosano Date: Sun, 1 Nov 2026 23:15:19 +0100 Subject: [PATCH] Build StarMap as AnyCPU The DLLs carry no native code, but the AMD64 mark from PlatformTarget x64 makes .NET on arm64 refuse them. Set AnyCPU in the three projects, so local builds, PR builds, the release and the StarMap.API package all match. The explicit value is needed: without it, -r win-x64 marks StarMap.dll AMD64 again. The win-x64 StarMap.exe is still built. --- StarMap.API/StarMap.API.csproj | 2 +- StarMap.Core/StarMap.Core.csproj | 2 +- StarMap/StarMap.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/StarMap.API/StarMap.API.csproj b/StarMap.API/StarMap.API.csproj index 3c59070..1135dac 100644 --- a/StarMap.API/StarMap.API.csproj +++ b/StarMap.API/StarMap.API.csproj @@ -2,7 +2,7 @@ net10.0 - x64 + AnyCPU enable enable true diff --git a/StarMap.Core/StarMap.Core.csproj b/StarMap.Core/StarMap.Core.csproj index 55e596b..9b091ff 100644 --- a/StarMap.Core/StarMap.Core.csproj +++ b/StarMap.Core/StarMap.Core.csproj @@ -1,7 +1,7 @@  net10.0 - x64 + AnyCPU enable enable Debug;Release;SourceNuget diff --git a/StarMap/StarMap.csproj b/StarMap/StarMap.csproj index 8fcebad..d8ab831 100644 --- a/StarMap/StarMap.csproj +++ b/StarMap/StarMap.csproj @@ -2,7 +2,7 @@ Exe net10.0 - x64 + AnyCPU enable enable Debug;Release;SourceNuget