Skip to content

Commit 1c00702

Browse files
committed
enable trimming
1 parent 45b110e commit 1c00702

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/create-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Publish Binaries
3232
working-directory: src/Server
3333
run: |
34-
dotnet publish ./InverterMon.Server.csproj -c Release -r ${{ matrix.rid }} --self-contained -p:PublishTrimmed=false -o ./bin/${{ matrix.rid }}
34+
dotnet publish ./InverterMon.Server.csproj -c Release -r ${{ matrix.rid }} --self-contained -p:PublishTrimmed=true -o ./bin/${{ matrix.rid }}
3535
rm -rf ./bin/${{ matrix.rid }}/BlazorDebugProxy
3636
cd ./bin/${{ matrix.rid }}
3737
zip -r -9 ../${{ matrix.rid }}.zip ./*

src/Server/Properties/PublishProfiles/FolderProfile.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
<ProjectGuid>b608f59f-4c72-43fd-820c-a0badf4591af</ProjectGuid>
1616
<SelfContained>true</SelfContained>
1717
<PublishSingleFile>true</PublishSingleFile>
18-
<PublishTrimmed>false</PublishTrimmed>
18+
<PublishTrimmed>true</PublishTrimmed>
1919
</PropertyGroup>
2020
</Project>

0 commit comments

Comments
 (0)