-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.targets
72 lines (65 loc) · 2.94 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
<Project>
<ItemGroup>
<Using Include="Microsoft.Win32.SafeHandles" />
<Using Include="System.Collections.Immutable" />
<Using Include="System.ComponentModel" />
<Using Include="System.Diagnostics" />
<Using Include="System.Diagnostics.CodeAnalysis" />
<Using Include="System.Globalization" />
<Using Include="System.IO.MemoryMappedFiles" />
<Using Include="System.Numerics" />
<Using Include="System.Reflection" />
<Using Include="System.Reflection.Emit" />
<Using Include="System.Runtime.CompilerServices" />
<Using Include="System.Runtime.ConstrainedExecution" />
<Using Include="System.Runtime.ExceptionServices" />
<Using Include="System.Runtime.InteropServices" />
<Using Include="System.Runtime.InteropServices.ComTypes" />
<Using Include="System.Text" />
<Using Include="System.Threading" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' != 'netstandard2.0'">
<Using Include="System.Runtime.Intrinsics" />
</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)ruptura.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/ruptura/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>