Skip to content

Commit

Permalink
Fix Build with version number
Browse files Browse the repository at this point in the history
MarcosMeli committed Jul 16, 2015
1 parent 66a3e18 commit 5b336a5
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Build/CurrentVersion.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
properties {
$CurrentVersion = "3.1.0"
$FullCurrentVersion = $CurrentVersion + "-rc"
$FullCurrentVersion = $CurrentVersion + ".0"
$VisibleVersion = $CurrentVersion + "-rc"
}
1 change: 1 addition & 0 deletions Build/VersionInfo.cs
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
// The version of the Library
[assembly : AssemblyVersion("-CustomVersion-")]
[assembly : AssemblyFileVersion("-CustomVersion-")]
[assembly : AssemblyInformationalVersion("-VisibleVersion-")]

[assembly : AssemblyDescription("A free and easy to use .NET library to read/write data from fixed length or delimited records in files, strings or streams")]
[assembly : AssemblyProduct("FileHelpers http://www.filehelpers.net")]
3 changes: 2 additions & 1 deletion Build/default.ps1
Original file line number Diff line number Diff line change
@@ -13,10 +13,11 @@ task default -depends pack
task version {
copy VersionInfo.cs ..\FileHelpers
exec { ..\Libs\FileReplace.exe "..\FileHelpers\VersionInfo.cs" "-CustomVersion-" "$FullCurrentVersion" }
exec { ..\Libs\FileReplace.exe "..\FileHelpers\VersionInfo.cs" "-VisibleVersion-" "$VisibleVersion" }
}

task common -depends version {
"##teamcity[buildNumber '" + $CurrentVersion + "']"
"##teamcity[buildNumber '" + $VisibleVersion + "']"

Delete-Make-Directory ..\$config
Delete-Make-Directory "..\Output"
5 changes: 3 additions & 2 deletions FileHelpers/VersionInfo.cs
Original file line number Diff line number Diff line change
@@ -2,8 +2,9 @@
using System.Runtime.InteropServices;

// The version of the Library
[assembly : AssemblyVersion("3.1.0-rc")]
[assembly : AssemblyFileVersion("3.1.0-rc")]
[assembly : AssemblyVersion("3.1.0.0")]
[assembly : AssemblyFileVersion("3.1.0.0")]
[assembly : AssemblyInformationalVersion("3.1.0-rc")]

[assembly : AssemblyDescription("A free and easy to use .NET library to read/write data from fixed length or delimited records in files, strings or streams")]
[assembly : AssemblyProduct("FileHelpers http://www.filehelpers.net")]
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.0.{build}
version: 3.1.0.{build}
skip_tags: true
configuration: Debug
platform: Any CPU

0 comments on commit 5b336a5

Please sign in to comment.