Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Commit

Permalink
modified versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
micahlmartin committed Aug 8, 2012
1 parent 3a04d9b commit ead2481
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
$DownloadDependentPackages = $true
$UploadPackage = $false
$NugetKey = ""
$PackageVersion = $null
}

$baseDir = resolve-path .
Expand Down Expand Up @@ -144,11 +145,13 @@ task PrepareRelease {
}

task CreatePackages -depends PrepareRelease {

if(($UploadPackage) -and ($NugetKey -eq "")){
throw "Could not find the NuGet access key Package Cannot be uploaded without access key"
}


$script:packageVersion = $PackageVersion

import-module $toolsDir\NuGet\packit.psm1
Write-Output "Loading the module for packing.............."
$packit.push_to_nuget = $UploadPackage
Expand All @@ -174,8 +177,8 @@ task CreatePackages -depends PrepareRelease {
Write-Output "Build Number: $BuildNumber"

$asmVersion = $ProductVersion + "." + $PatchVersion + "." + $BuildNumber
$script:packageVersion = $asmVersion
$PackageVersion = $asmVersion

Write-Output "##teamcity[buildNumber '$asmVersion']"

$asmInfo = "using System;
Expand Down

0 comments on commit ead2481

Please sign in to comment.