Skip to content

Commit

Permalink
fix(.NET): Disable trimmming. It's recommended to avoid it when havin…
Browse files Browse the repository at this point in the history
…g 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.
  • Loading branch information
Belphemur committed Sep 5, 2021
1 parent 2581742 commit 033b968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SoundSwitch/SoundSwitch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<LangVersion>latest</LangVersion>
<UseWindowsForms>true</UseWindowsForms>
<Deterministic>false</Deterministic>
<PublishTrimmed>true</PublishTrimmed>
<PublishTrimmed>false</PublishTrimmed>
<TrimMode>link</TrimMode>
<PublishReadyToRun>false</PublishReadyToRun>
<PublishReadyToRun>true</PublishReadyToRun>
<Configurations>Debug;Release;Beta</Configurations>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<TargetFramework>net5.0-windows</TargetFramework>
Expand Down

0 comments on commit 033b968

Please sign in to comment.