-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Directory.Build.targets
79 lines (73 loc) · 3.25 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
72
73
74
75
76
77
78
79
<Project>
<ItemGroup>
<Using Include="Microsoft.Win32.SafeHandles" />
<Using Include="System.Buffers" />
<Using Include="System.Buffers.Binary" />
<Using Include="System.Collections" />
<Using Include="System.Collections.Concurrent" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.Collections.ObjectModel" />
<Using Include="System.ComponentModel" />
<Using Include="System.Diagnostics" />
<Using Include="System.Diagnostics.CodeAnalysis" />
<Using Include="System.Dynamic" />
<Using Include="System.Globalization" />
<Using Include="System.IO.Compression" />
<Using Include="System.Net" />
<Using Include="System.Net.Sockets" />
<Using Include="System.Numerics" />
<Using Include="System.Reflection" />
<Using Include="System.Runtime.CompilerServices" />
<Using Include="System.Runtime.ExceptionServices" />
<Using Include="System.Runtime.InteropServices" />
<Using Include="System.Security.Cryptography" />
<Using Include="System.Text" />
<Using Include="System.Text.Json" />
<Using Include="System.Text.Json.Serialization" />
<Using Include="System.Text.RegularExpressions" />
<Using Include="System.Xml" />
<Using Include="System.Xml.Linq" />
<Using Include="System.Xml.Schema" />
</ItemGroup>
<ItemGroup>
<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)novadrop.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/novadrop/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>