Skip to content

Commit 0e76b6b

Browse files
committed
Suppress WinForms trim errors in build and project
Added the _SuppressWinFormsTrimError property to the build-release and build-test GitHub Actions workflows and to FFmpegInstaller.csproj. This change prevents build failures due to WinForms trimming errors during publish.
1 parent bb77ff8 commit 0e76b6b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.github/workflows/build-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
-p:PublishSingleFile=true `
6565
-p:PublishReadyToRun=true `
6666
-p:PublishTrimmed=true `
67+
-p:_SuppressWinFormsTrimError=true `
6768
-p:EnableCompressionInSingleFile=true `
6869
-o ./publish
6970

.github/workflows/build-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
-p:PublishSingleFile=true `
6262
-p:PublishReadyToRun=true `
6363
-p:PublishTrimmed=true `
64+
-p:_SuppressWinFormsTrimError=true `
6465
-p:EnableCompressionInSingleFile=true `
6566
-o ./publish
6667

FFmpegInstaller.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<SelfContained>true</SelfContained>
2020
<PublishReadyToRun>true</PublishReadyToRun>
2121
<PublishTrimmed>true</PublishTrimmed>
22+
<_SuppressWinFormsTrimError>true</_SuppressWinFormsTrimError>
2223
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
2324
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
2425
<RuntimeIdentifier>win-x64</RuntimeIdentifier>

0 commit comments

Comments
 (0)