Skip to content

Commit

Permalink
make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsitnik committed Sep 21, 2023
1 parent c97a918 commit 7075015
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 5 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@
<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>
</PropertyGroup>

<PropertyGroup Condition="!$(MSBuildProjectName.EndsWith('.Tests'))">
<PackageReadmeFile Condition="Exists('README.md')">README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup Condition="!$(MSBuildProjectName.EndsWith('.Tests'))">
<InternalsVisibleTo Include="$(MSBuildProjectName).Tests" />
</ItemGroup>
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 7075015

Please sign in to comment.