Skip to content

Commit

Permalink
Enable trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
lhak committed Jan 3, 2023
1 parent cfac50d commit 7b8727b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
6 changes: 6 additions & 0 deletions DependenciesWAS/DependenciesWAS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<OutputPath>$(SolutionDir)bin\$(Configuration)$(Platform)</OutputPath>
<IntermediateOutputPath>$(SolutionDir)obj\$(ProjectName)\$(Configuration)$(Platform)</IntermediateOutputPath>
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
<TrimMode>partial</TrimMode>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Packaged'">
<DefineConstants>$(DefineConstants);RELEASE;TRACE</DefineConstants>
Expand All @@ -37,6 +38,11 @@
<None Remove="UserSettings.xaml" />
</ItemGroup>

<ItemGroup>
<TrimmerRootAssembly Include="System.Configuration.ConfigurationManager" />
<TrimmerRootAssembly Include="System" />
</ItemGroup>

<ItemGroup>
<Content Include="Dependencies.ico" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishSingleFile>False</PublishSingleFile>
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<!--
See https://github.com/microsoft/CsWinRT/issues/373
<PublishTrimmed>True</PublishTrimmed>
-->
<PublishTrimmed Condition="'$(Configuration)' != 'Debug'">True</PublishTrimmed>
</PropertyGroup>
</Project>
5 changes: 1 addition & 4 deletions DependenciesWAS/Properties/PublishProfiles/win10-x64.pubxml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishSingleFile>False</PublishSingleFile>
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<!--
See https://github.com/microsoft/CsWinRT/issues/373
<PublishTrimmed>True</PublishTrimmed>
-->
<PublishTrimmed Condition="'$(Configuration)' != 'Debug'">True</PublishTrimmed>
</PropertyGroup>
</Project>
5 changes: 1 addition & 4 deletions DependenciesWAS/Properties/PublishProfiles/win10-x86.pubxml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishSingleFile>False</PublishSingleFile>
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<!--
See https://github.com/microsoft/CsWinRT/issues/373
<PublishTrimmed>True</PublishTrimmed>
-->
<PublishTrimmed Condition="'$(Configuration)' != 'Debug'">True</PublishTrimmed>
</PropertyGroup>
</Project>

0 comments on commit 7b8727b

Please sign in to comment.