-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Directory.Build.targets
71 lines (64 loc) · 2.85 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<Project>
<PropertyGroup Condition="'$(UsingVezelZigSdk)' != 'true'">
<NBGV_ThisAssemblyNamespace>$(RootNamespace)</NBGV_ThisAssemblyNamespace>
</PropertyGroup>
<ItemGroup>
<Using Include="System.Buffers" />
<Using Include="System.Collections.Concurrent" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.ComponentModel" />
<Using Include="System.Diagnostics" />
<Using Include="System.Diagnostics.CodeAnalysis" />
<Using Include="System.Drawing" />
<Using Include="System.Globalization" />
<Using Include="System.IO.Pipelines" />
<Using Include="System.IO.Pipes" />
<Using Include="System.Numerics" />
<Using Include="System.Reflection" />
<Using Include="System.Runtime.CompilerServices" />
<Using Include="System.Runtime.InteropServices" />
<Using Include="System.Runtime.Versioning" />
<Using Include="System.Text" />
</ItemGroup>
<ItemGroup Condition="'$(UsingVezelZigSdk)' != 'true'">
<AdditionalFiles Include="$(MSBuildThisFileDirectory).stylecop.json" />
</ItemGroup>
<Choose>
<When Condition="'$(IsPackable)' == 'true'">
<PropertyGroup>
<IsAotCompatible Condition="'$(OutputType)' == 'Library'">true</IsAotCompatible>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)PACKAGE.md; $(MSBuildThisFileDirectory)cathode.png"
Pack="true"
PackagePath=""
Visible="false" />
<None Include="$(MSBuildProjectName).targets"
Pack="true"
PackagePath="buildTransitive/$(PackageId).targets"
Condition="'$(OutputType)' == 'Library' and Exists('$(MSBuildProjectName).targets')" />
</ItemGroup>
</When>
</Choose>
<Target Name="_SetReleaseNotes"
DependsOnTargets="GetBuildVersion"
BeforeTargets="GenerateNuspec"
Condition="'$(IsPackable)' == 'true' and '$(PublicRelease)' == 'true'">
<PropertyGroup>
<PackageReleaseNotes>https://github.com/vezel-dev/cathode/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>