Skip to content

Commit

Permalink
Added mark as IsTrimmable (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot authored Nov 17, 2023
1 parent aa9eae1 commit 80faa87
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
12 changes: 12 additions & 0 deletions NLog.Windows.Forms/AssemblyMetadataAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#if NET35
namespace System.Reflection
{
[AttributeUsage(AttributeTargets.Assembly)]
internal sealed class AssemblyMetadataAttribute : Attribute
{
public AssemblyMetadataAttribute(string key, string value)
{
}
}
}
#endif
11 changes: 7 additions & 4 deletions NLog.Windows.Forms/NLog.Windows.Forms.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net35;netcoreapp3.1;net6.0-windows</TargetFrameworks>
<UseWindowsForms>true</UseWindowsForms>
Expand Down Expand Up @@ -29,10 +29,13 @@
<AssemblyOriginatorKeyFile>NLog.snk</AssemblyOriginatorKeyFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<IsPackable>true</IsPackable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IncludeSymbols>true</IncludeSymbols>
<DebugType Condition=" '$(Configuration)' == 'Debug' ">Full</DebugType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<IsTrimmable>true</IsTrimmable>
<!-- EmbedUntrackedSources for deterministic build -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 80faa87

Please sign in to comment.