-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
23 lines (21 loc) · 825 Bytes
/
Directory.Build.targets
File metadata and controls
23 lines (21 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<Project>
<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.
This ensures that people will not have to fiddle around with removing these
manually when iterating on changes locally.
-->
<Target Name="_ClearPackageCache"
AfterTargets="Clean; Pack"
Condition="'$(IsPackable)' == 'true'">
<ItemGroup>
<_CachedFiles Include="$(NuGetPackageRoot)/$(PackageId.ToLowerInvariant())/**" />
</ItemGroup>
<Delete Files="@(_CachedFiles)" />
</Target>
</Project>