-
Notifications
You must be signed in to change notification settings - Fork 33
/
Directory.Build.props
63 lines (56 loc) · 2.21 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
<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>
<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/Signed-->
<PackageVersion>80.$(Minor).$(Build).$(Revision)</PackageVersion>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>