Skip to content

Commit

Permalink
IsTrimmable only for NetStandard2 and newer (#5510)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot authored Apr 13, 2024
1 parent 0bfa4f5 commit f0af62a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/NLog.OutputDebugString/NLog.OutputDebugString.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<IsPackable>true</IsPackable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<IsTrimmable>true</IsTrimmable>
<EnableTrimAnalyzer Condition=" '$(TargetFramework)' == 'netstandard2.0' ">true</EnableTrimAnalyzer>
<IsTrimmable Condition=" '$(TargetFramework)' == 'netstandard2.0' ">true</IsTrimmable>
<TrimMode>copyused</TrimMode>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/NLog.WindowsEventLog/NLog.WindowsEventLog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
<IsPackable>true</IsPackable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<IsTrimmable>true</IsTrimmable>
<EnableTrimAnalyzer Condition=" '$(TargetFramework)' == 'netstandard2.0' ">true</EnableTrimAnalyzer>
<IsTrimmable Condition=" '$(TargetFramework)' == 'netstandard2.0' ">true</IsTrimmable>
<TrimMode>copyused</TrimMode>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/NLog.WindowsRegistry/NLog.WindowsRegistry.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<IsPackable>true</IsPackable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<IsTrimmable>true</IsTrimmable>
<EnableTrimAnalyzer Condition=" '$(TargetFramework)' == 'netstandard2.0' ">true</EnableTrimAnalyzer>
<IsTrimmable Condition=" '$(TargetFramework)' == 'netstandard2.0' ">true</IsTrimmable>
<TrimMode>copyused</TrimMode>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/NLog/NLog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ For all config options and platform support, check https://nlog-project.org/conf

<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<IsTrimmable>true</IsTrimmable>
<EnableTrimAnalyzer Condition=" '$(TargetFramework)' == 'netstandard2.0' ">true</EnableTrimAnalyzer>
<IsTrimmable Condition=" '$(TargetFramework)' == 'netstandard2.0' ">true</IsTrimmable>
<TrimMode>copyused</TrimMode>
</PropertyGroup>

Expand Down

0 comments on commit f0af62a

Please sign in to comment.