forked from Krypton-Suite/Standard-Toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
85 lines (74 loc) · 3.02 KB
/
Directory.Build.props
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
85
<Project>
<Choose>
<When Condition="'$(Configuration)' == 'Canary'">
<PropertyGroup>
<Minor>$([System.DateTime]::Now.ToString(yy))</Minor>
<Build>$([System.DateTime]::Now.ToString(MM))</Build>
<Revision>$([System.DateTime]::Now.get_DayOfYear().ToString())</Revision>
<!--Version layout schema:
80 = Major
23 = Minor - Year of release
01 = Build - Month of release
1 = Revision - Day of release (day of year)
-beta = Indicates a pre-release package
-->
<LibraryVersion>80.$(Minor).$(Build).$(Revision)</LibraryVersion>
<!--https://docs.microsoft.com/en-us/nuget/create-packages/prerelease-packages-->
<PackageVersion>80.$(Minor).$(Build).$(Revision)-beta</PackageVersion>
</PropertyGroup>
</When>
<When Condition="'$(Configuration)' == 'Nightly'">
<PropertyGroup>
<Minor>$([System.DateTime]::Now.ToString(yy))</Minor>
<Build>$([System.DateTime]::Now.ToString(MM))</Build>
<Revision>$([System.DateTime]::Now.get_DayOfYear().ToString())</Revision>
<!--Version layout schema:
80 = Major
23 = Minor - Year of release
01 = Build - Month of release
1 = Revision - Day of release (day of year)
-alpha = Indicates a pre-release package
-->
<LibraryVersion>80.$(Minor).$(Build).$(Revision)</LibraryVersion>
<!--Nightly-->
<!--https://docs.microsoft.com/en-us/nuget/create-packages/prerelease-packages-->
<PackageVersion>80.$(Minor).$(Build).$(Revision)-alpha</PackageVersion>
</PropertyGroup>
</When>
<When Condition="'$(Configuration)' == 'Installer'">
<PropertyGroup>
<Minor>$([System.DateTime]::Now.ToString(yy))</Minor>
<Build>$([System.DateTime]::Now.ToString(MM))</Build>
<Revision>$([System.DateTime]::Now.get_DayOfYear().ToString())</Revision>
<!--Version layout schema:
80 = Major
23 = Minor - Year of release
01 = Build - Month of release
1 = Revision - Day of release (day of year)
-->
<!--As WIX installer can only cope with build numbers <= 256, the yyMM layout won't work.
Therefore, the build number for these packages will utilise the month number, assuming
that the major number will follow the latest .NET release number.-->
<LibraryVersion>80.$(Minor).$(Build).$(Revision)</LibraryVersion>
<PackageVersion>80.$(Minor).$(Build).$(Revision)</PackageVersion>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<Minor>$([System.DateTime]::Now.ToString(yy))</Minor>
<Build>$([System.DateTime]::Now.ToString(MM))</Build>
<Revision>$([System.DateTime]::Now.get_DayOfYear().ToString())</Revision>
<!--Version layout schema:
80 = Major
23 = Minor - Year of release
01 = Build - Month of release
1 = Revision - Day of release (day of year)
-->
<LibraryVersion>80.$(Minor).$(Build).$(Revision)</LibraryVersion>
<!--https://docs.microsoft.com/en-us/nuget/create-packages/prerelease-packages-->
<!--Stable-->
<PackageVersion>80.$(Minor).$(Build).$(Revision)</PackageVersion>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>