-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.targets
47 lines (41 loc) · 1.72 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<Project>
<PropertyGroup Condition="'$(UsingVezelZigSdk)' != 'true'">
<NBGV_ThisAssemblyNamespace>$(RootNamespace)</NBGV_ThisAssemblyNamespace>
</PropertyGroup>
<ItemGroup>
<Using Include="System.Diagnostics.CodeAnalysis" />
<Using Include="System.Globalization" />
<Using Include="System.Runtime.CompilerServices" />
<Using Include="System.Runtime.InteropServices" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory).stylecop.json" />
</ItemGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="$(MSBuildThisFileDirectory)PACKAGE.md; $(MSBuildThisFileDirectory)zig.png"
Pack="true"
PackagePath=""
Visible="false" />
</ItemGroup>
<Target Name="_SetReleaseNotes"
DependsOnTargets="GetBuildVersion"
BeforeTargets="GenerateNuspec"
Condition="'$(IsPackable)' == 'true' and '$(PublicRelease)' == 'true'">
<PropertyGroup>
<PackageReleaseNotes>https://github.com/vezel-dev/zig-sdk/releases/tag/v$(Version)</PackageReleaseNotes>
</PropertyGroup>
</Target>
<!--
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>