Skip to content

Commit 29edf49

Browse files
Move to PackageIcon and PackageLicenseExpression for NuGet package (#461)
* Move to PackageIcon for NuGet package * PackageLicenseExpression
1 parent 9c3c6f0 commit 29edf49

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

src/NLog.Extensions.Hosting/NLog.Extensions.Hosting.csproj

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.Web.AspNetCore </Description>
1717
<PackageProjectUrl>https://github.com/NLog/NLog.Extensions.Logging</PackageProjectUrl>
18-
<PackageLicenseUrl>https://github.com/NLog/NLog.Extensions.Logging/blob/master/LICENSE</PackageLicenseUrl>
19-
<PackageIconUrl>https://nlog-project.org/NConfig.png</PackageIconUrl>
18+
<PackageLicenseExpression>BSD-2-Clause</PackageLicenseExpression>
19+
<PackageIcon>N.png</PackageIcon>
2020
<RepositoryUrl>https://github.com/NLog/NLog.Extensions.Logging.git</RepositoryUrl>
2121
<RepositoryType>git</RepositoryType>
2222
<PackageTags>NLog;Microsoft.Extensions.Hosting;log;logging;logfiles;netcore</PackageTags>
@@ -46,4 +46,11 @@ Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHAN
4646
<ProjectReference Include="..\NLog.Extensions.Logging\NLog.Extensions.Logging.csproj" />
4747
</ItemGroup>
4848

49+
<ItemGroup>
50+
<None Include="N.png" Pack="true" PackagePath=""/>
51+
</ItemGroup>
52+
<Target Name="DownloadMissingContent" BeforeTargets="GenerateNuspec">
53+
<DownloadFile SourceUrl="https://nlog-project.org/N.png" DestinationFolder="$(MSBuildThisFileDirectory)" />
54+
</Target>
55+
4956
</Project>

src/NLog.Extensions.Logging/NLog.Extensions.Logging.csproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.W
2727
Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHANGELOG.MD
2828
</PackageReleaseNotes>
2929
<PackageProjectUrl>https://github.com/NLog/NLog.Extensions.Logging</PackageProjectUrl>
30-
<PackageLicenseUrl>https://github.com/NLog/NLog.Extensions.Logging/blob/master/LICENSE</PackageLicenseUrl>
31-
<PackageIconUrl>https://nlog-project.org/NConfig.png</PackageIconUrl>
30+
<PackageLicenseExpression>BSD-2-Clause</PackageLicenseExpression>
31+
<PackageIcon>N.png</PackageIcon>
3232
<RepositoryUrl>https://github.com/NLog/NLog.Extensions.Logging.git</RepositoryUrl>
3333
<RepositoryType>git</RepositoryType>
3434

@@ -95,6 +95,12 @@ Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHAN
9595
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.0' ">
9696
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.0.0" />
9797
</ItemGroup>
98+
<ItemGroup>
99+
<None Include="N.png" Pack="true" PackagePath=""/>
100+
</ItemGroup>
101+
<Target Name="DownloadMissingContent" BeforeTargets="GenerateNuspec">
102+
<DownloadFile SourceUrl="https://nlog-project.org/N.png" DestinationFolder="$(MSBuildThisFileDirectory)" />
103+
</Target>
98104

99105
<PropertyGroup>
100106
<AssemblyTitle>$(Title)</AssemblyTitle>

0 commit comments

Comments
 (0)