Skip to content

Commit

Permalink
Only enable trimming options on supported TFMs
Browse files Browse the repository at this point in the history
  • Loading branch information
jzebedee committed Dec 3, 2023
1 parent ac4d9dc commit 78850f0
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/DeltaQ.BsDiff/DeltaQ.BsDiff.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsTrimmable>true</IsTrimmable>

<!-- Source Link Support -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand All @@ -21,6 +20,11 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

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

<!-- Source Link Support -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsTrimmable>true</IsTrimmable>

<!-- Source Link Support -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand All @@ -21,6 +20,11 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

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

<!-- Source Link Support -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsTrimmable>true</IsTrimmable>

<!-- Source Link Support -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand All @@ -23,6 +22,11 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

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

<!-- Source Link Support -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsTrimmable>true</IsTrimmable>

<!-- Source Link Support -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand All @@ -21,6 +20,11 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

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

<!-- Source Link Support -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
Expand Down
6 changes: 5 additions & 1 deletion src/DeltaQ.Utility.Memory/DeltaQ.Utility.Memory.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsTrimmable>true</IsTrimmable>

<!-- Source Link Support -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand All @@ -21,6 +20,11 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

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

<!-- Source Link Support -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
Expand Down
6 changes: 5 additions & 1 deletion src/DeltaQ/DeltaQ.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsTrimmable>true</IsTrimmable>

<!-- Source Link Support -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand All @@ -21,6 +20,11 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

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

<!-- Source Link Support -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
Expand Down

0 comments on commit 78850f0

Please sign in to comment.