From 1c700f67bc9bd779df6a564a46123941aeab0817 Mon Sep 17 00:00:00 2001 From: nanxun Date: Fri, 3 Jul 2026 14:29:30 +0800 Subject: [PATCH] fix: remove hardcoded RuntimeIdentifier from csproj causing FileLoadException MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The csproj had linux-arm64 baked in, which forced dotnet publish to produce linux-arm64 native output on EVERY platform (including amd64). On amd64 containers the runtime could not load the entry assembly, causing FileLoadException crash loops. RID is unnecessary for framework-dependent builds (--p:UseAppHost=false is already in the Dockerfile). Removing it lets each platform produce its natural runtime output — the base dotnet/aspnet image already has the correct architecture's runtime. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/LiveRecorder.WebApi/LiveRecorder.WebApi.csproj | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/LiveRecorder.WebApi/LiveRecorder.WebApi.csproj b/src/LiveRecorder.WebApi/LiveRecorder.WebApi.csproj index e6c09cf..252de69 100644 --- a/src/LiveRecorder.WebApi/LiveRecorder.WebApi.csproj +++ b/src/LiveRecorder.WebApi/LiveRecorder.WebApi.csproj @@ -17,8 +17,6 @@ net8.0 enable enable - linux-arm64 - false