Skip to content

Commit

Permalink
Make sure SponsorLink disclaimer exists in package description
Browse files Browse the repository at this point in the history
Complements #377 in satisfying NuGet's code of conduct # 5 (see https://www.nuget.org/policies/Terms).
  • Loading branch information
kzu committed Sep 10, 2024
1 parent 60d8632 commit 63d516b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Directory.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<Project InitialTargets="SetLocalVersion">

<PropertyGroup>
<Description Condition="'$(IsPackable)' != 'false'">$(Description)

> This project uses SponsorLink and may issue IDE-only warnings if no active sponsorship is detected. Learn more at https://github.com/devlooped#sponsorlink.
</Description>
</PropertyGroup>

<ItemGroup>
<NoneWithoutCopyToOutputDirectory Include="@(None)" Exclude="@(None -> HasMetadata('CopyToOutputDirectory'))" />
<None Update="@(NoneWithoutCopyToOutputDirectory)" CopyToOutputDirectory="PreserveNewest" />
Expand Down

0 comments on commit 63d516b

Please sign in to comment.