Skip to content

Commit c952ad6

Browse files
authored
Merge pull request #1561 from OmarTawfik/fixsetupversion
Attach build number to setup packages There was a CI failure related to #811. This needs to be prioritized at some point.
2 parents 1df5ca9 + 7187352 commit c952ad6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

setup/FSharp.Setup.props

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,20 @@
44
<PropertyGroup>
55
<SchemaVersion>2.0</SchemaVersion>
66
<ProductVersion>3.10</ProductVersion>
7-
<FSharpPackageVersion>4.1</FSharpPackageVersion>
87
<WiXToolset2015Version>3.10.0.1503</WiXToolset2015Version>
98
<WixInstallPath>$(SetupRootFolder)\..\packages\WiX.Toolset.2015.$(WiXToolset2015Version)\tools\wix</WixInstallPath>
109
<NugetPackagesDir>$(SetupRootFolder)\..\packages</NugetPackagesDir>
1110
</PropertyGroup>
12-
11+
12+
<PropertyGroup>
13+
<FSharpProductVersion>4.1</FSharpProductVersion>
14+
<!-- BUILD_BUILDNUMBER is passed from Microbuild. Replace by today's date and (0) if it was a local build -->
15+
<BUILD_BUILDNUMBER Condition="'$(BUILD_BUILDNUMBER)' == ''">$([System.DateTime]::Now.ToString(yyyyMMdd.0))</BUILD_BUILDNUMBER>
16+
<!-- Remove .DRAFT suffix if it exists in the build number -->
17+
<FSharpPackageVersion>$(FSharpProductVersion).$(BUILD_BUILDNUMBER.Replace(".DRAFT", ""))</FSharpPackageVersion>
18+
<!-- FSharpPackageVersion should be {F# version}.{today's date}.{build number}. Example: 4.1.20160901.3 -->
19+
</PropertyGroup>
20+
1321
<PropertyGroup>
1422
<TargetFramework Condition=" '$(TargetFramework)' == '' ">net40</TargetFramework>
1523
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>

0 commit comments

Comments
 (0)