Skip to content

Commit

Permalink
Include README.md in NuGet package (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Aug 7, 2022
1 parent 59cea00 commit 49cf298
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<PropertyGroup>
<VersionPrefix>4.0.0-preview</VersionPrefix>
<VersionPrefix>5.0.0-preview</VersionPrefix>
<LangVersion>10.0</LangVersion>
<Copyright>Shane Krueger</Copyright>
<Authors>Shane Krueger</Authors>
Expand All @@ -24,10 +24,12 @@
<NoWarn>$(NoWarn);IDE0056;IDE0057</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" Condition="'$(IsPackable)' == 'true'"/>
<None Include="..\..\logo.64x64.png" Pack="true" PackagePath="\" Condition="'$(IsPackable)' == 'true'"/>
<None Include="..\..\LICENSE" Pack="true" PackagePath="\" Condition="'$(IsPackable)' == 'true'"/>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
<None Include="..\..\logo.64x64.png" Pack="true" PackagePath="\"/>
<None Include="..\..\LICENSE" Pack="true" PackagePath="\"/>
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
<None Include="..\..\migration.md" Pack="true" PackagePath="\"/>
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
</PropertyGroup>

<PropertyGroup Condition="'$(IsPackable)' == 'true'">
<PackageReadmeFile>README.md</PackageReadmeFile>
<AnalysisMode>Recommended</AnalysisMode>
</PropertyGroup>
</Project>

0 comments on commit 49cf298

Please sign in to comment.