Skip to content

Commit

Permalink
Clean up Directory.Build.props/targets a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Apr 17, 2024
1 parent 14240d2 commit 8640e05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
2 changes: 2 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<PackageIcon>zig.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://ziglang.org</PackageProjectUrl>
<PackageReadmeFile>PACKAGE.md</PackageReadmeFile>
<PackageReleaseNotes>https://ziglang.org/download/$(ZigVersion)/release-notes.html</PackageReleaseNotes>
<RepositoryUrl>https://github.com/vezel-dev/zig-toolsets.git</RepositoryUrl>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
21 changes: 6 additions & 15 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
<Project>
<Choose>
<When Condition="'$(IsPackable)' == 'true'">
<PropertyGroup>
<PackageIcon>zig.png</PackageIcon>
<PackageReadmeFile>PACKAGE.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)PACKAGE.md; $(MSBuildThisFileDirectory)zig.png"
Pack="true"
PackagePath=""
Visible="false" />
</ItemGroup>
</When>
</Choose>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="$(MSBuildThisFileDirectory)PACKAGE.md; $(MSBuildThisFileDirectory)zig.png"
Pack="true"
PackagePath=""
Visible="false" />
</ItemGroup>

<!--
Get rid of the restored package(s) in the repository's local package cache.
Expand Down

0 comments on commit 8640e05

Please sign in to comment.