Skip to content

Commit 033b968

Browse files
committed
fix(.NET): Disable trimmming. It's recommended to avoid it when having a WinForm application. This will fixes a lot of startup crashes.
Moreover, when .NET 6.0 comes, I won't have the choice if I want to continue using reliably COM interfaces like the MMDeviceEnumerator.
1 parent 2581742 commit 033b968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SoundSwitch/SoundSwitch.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<LangVersion>latest</LangVersion>
77
<UseWindowsForms>true</UseWindowsForms>
88
<Deterministic>false</Deterministic>
9-
<PublishTrimmed>true</PublishTrimmed>
9+
<PublishTrimmed>false</PublishTrimmed>
1010
<TrimMode>link</TrimMode>
11-
<PublishReadyToRun>false</PublishReadyToRun>
11+
<PublishReadyToRun>true</PublishReadyToRun>
1212
<Configurations>Debug;Release;Beta</Configurations>
1313
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1414
<TargetFramework>net5.0-windows</TargetFramework>

0 commit comments

Comments
 (0)