Skip to content

Commit

Permalink
fix README.md files for NuGet packages (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsitnik authored Sep 21, 2023
1 parent 960c161 commit a39d9fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
<NoWarn>$(NoWarn);1591;IDISP013</NoWarn> <!--TODO: temporary solution-->
<CheckEolTargetFramework>false</CheckEolTargetFramework>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
<PackageReadmeFile Condition="Exists('README.md')">README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<None Condition="Exists('README.md')" Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
<NoWarn>$(NoWarn);IDE1006</NoWarn>
<WarningsNotAsErrors>$(WarningsNotAsErrors);IDE0053;IDE0060</WarningsNotAsErrors>
Expand Down
5 changes: 0 additions & 5 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<Project>

<PropertyGroup Condition="'$(IsPackable)' == 'true'">
<PackageReadmeFile Condition="Exists('$(ProjectDir)README.md')">README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Condition="Exists('$(ProjectDir)README.md')" Include="README.md" Pack="true" PackagePath="\" />
<None Include="..\..\assets\icon.png" Pack="true" PackagePath="\" Visible="false" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<Compile Include="../ApiMarker.cs" Link="ApiMarker.cs" Visible="false" />
Expand Down

0 comments on commit a39d9fc

Please sign in to comment.