Skip to content

Commit

Permalink
trimming flags conditioned on net6.0 or better (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchcapper authored Dec 29, 2023
1 parent 4e1fecd commit 1fc1634
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Cpp2IL.Gui/Cpp2IL.Gui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
<PublishSingleFile>true</PublishSingleFile>
<PublishTrimmed>true</PublishTrimmed>
<TargetFramework>net7.0</TargetFramework>
<TrimMode>link</TrimMode>
<VersionPrefix>2022.1.0</VersionPrefix>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
<TrimMode>link</TrimMode>
</PropertyGroup>
<ItemGroup>
<Folder Include="Models\" />
<AvaloniaResource Include="Assets\**" />
Expand Down
7 changes: 5 additions & 2 deletions Cpp2IL/Cpp2IL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
<Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<PublishSingleFile Condition="'$(TargetFramework)'!='net472' and '$(GITHUB_ACTIONS)' == 'true'">true</PublishSingleFile>
<PublishTrimmed>true</PublishTrimmed>
<TargetFrameworks>net7.0;net472</TargetFrameworks>
<TrimMode>partial</TrimMode>
<VersionPrefix>2022.1.0</VersionPrefix>
<ServerGarbageCollection>true</ServerGarbageCollection>
</PropertyGroup>

<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
<TrimMode>partial</TrimMode>
<PublishTrimmed>true</PublishTrimmed>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<OutputPath>bin\x64\Debug\</OutputPath>
</PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions LibCpp2IL/LibCpp2IL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<Description>Library for interacting with IL2CPP metadata and binaries</Description>
<Configurations>Debug;Release</Configurations>
<TargetFrameworks>net7.0;net6.0;netstandard2.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>

Expand Down

0 comments on commit 1fc1634

Please sign in to comment.