🐛 Fix trimmed publish cause unable to run

This commit is contained in:
LittleSheep 2025-05-26 19:28:38 +08:00
parent 99f2e724a6
commit 3004536cc1

View File

@ -36,7 +36,6 @@ RUN mkdir -p /app/publish/zh-Hans
# Trim, ReadyToRun, single-file (optional), no self-contained to keep image small
RUN dotnet publish -c $BUILD_CONFIGURATION -o /app/publish \
-p:PublishTrimmed=true \
-p:PublishReadyToRun=true \
-p:TieredPGO=true \
-p:SuppressTrimAnalysisWarnings=true