-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Directory.Build.Targets
84 lines (75 loc) · 3.14 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
80
81
82
83
84
<Project>
<PropertyGroup>
<!-- Full symbols so that unit test assertions have more info -->
<DebugType Condition=" '$(Configuration)' == 'Debug' ">Full</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(SignType)' == 'Test'">
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)Test.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition="'$(SignType)' == 'Real'">
<SignAssembly>true</SignAssembly>
<DelaySign Condition="'$(IsTestProject)' != 'true'">true</DelaySign>
<AssemblyOriginatorKeyFile Condition="'$(IsTestProject)' != 'true'">$(MSBuildThisFileDirectory)cloud3d-codesign.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile Condition="'$(IsTestProject)' == 'true'">$(MSBuildThisFileDirectory)Test.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<Authors>CZEMacLeod</Authors>
<Company>Cloud3D Ltd.</Company>
<Copyright>© Cloud3D Ltd. All rights reserved.</Copyright>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageLicensePath>$(MSBuildThisFileDirectory)$(PackageLicenseFile)</PackageLicensePath>
<PackageProjectUrl>https://github.com/CZEMacLeod/C3D.MSBuild.Tools.EF6.GenerateViews</PackageProjectUrl>
<RepositoryUrl>https://github.com/CZEMacLeod/C3D.MSBuild.Tools.EF6.GenerateViews.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="Sdk\**"
Pack="true"
PackagePath="Sdk\" />
<None Include="README.md" Condition="EXISTS('README.md')" />
<None Include="$(PackageLicensePath)"
Pack="true"
PackagePath="$(PackageLicenseFile)"
Visible="false" />
</ItemGroup>
<PropertyGroup>
<GenerateNuspecDependsOn>SetAuthors;SetPackageTags;SetPackageDescription;$(GenerateNuspecDependsOn)</GenerateNuspecDependsOn>
</PropertyGroup>
<Target Name="SetAuthors">
<RemoveDuplicates
Inputs="@(Author)">
<Output
TaskParameter="Filtered"
ItemName="_Author"/>
</RemoveDuplicates>
<PropertyGroup>
<Authors Condition="'@(_Author)'!=''">@(_Author, ',')</Authors>
</PropertyGroup>
<Message Text="Authors: $(Authors)" Importance="high" />
</Target>
<Target Name="SetPackageTags">
<RemoveDuplicates
Inputs="@(PackageTag)">
<Output
TaskParameter="Filtered"
ItemName="_PackageTag"/>
</RemoveDuplicates>
<PropertyGroup>
<PackageTags Condition="'$(PackageTags)'==''">@(_PackageTag, ' ')</PackageTags>
</PropertyGroup>
<Message Text="Package Tags: $(PackageTags)" Importance="high" />
</Target>
<Target Name="SetPackageDescription" DependsOnTargets="GetBuildVersion">
<PropertyGroup>
<PackageDescription>
Assembly Version: $(AssemblyVersion)
File Version: $(AssemblyFileVersion)
Informational Version: $(AssemblyInformationalVersion)
Build Configuration: $(Configuration)
$(AssemblyDescription)
</PackageDescription>
</PropertyGroup>
<Message Text="Package Description: $(PackageDescription)" Importance="high" />
</Target>
</Project>