#
# Simple script to build the nuget package
# when run from the continuous integration server. The result
# of this guy will be become a build artifact.
#


$mod = Resolve-Path .\LINQToTTree\BuildScripts\BuildUtils.psm1
$policy = Get-ExecutionPolicy
Import-Module $mod

#
# Some config - which might oneday be passed in as arguments!
#

$release = "x86\Release"
$NameSuffix = "-ci"

#
# The CI builder has already done all the hard work for us, so we need to just go
# and get everything.
#

# First, we need to put together the version number that we will use to register
# this nuget package

$FileVersion = (Get-Item "LINQToTTree\LINQToTTreeLib\bin\$release\LINQToTTreeLib.dll").VersionInfo.ProductVersion
$version = $FileVersion

# Next, do the nuget build!

#-nugetDistroDirectory $nugetPackageDir 
$currentPath = Resolve-Path "."
build-LINQToTTree-nuget-packages $currentPath $currentPath $version -PDB:$PDB -NameSuffix $NameSuffix -Release $release

#
# Simple script to build the nuget package
# when run from the continuous integration server. The result
# of this guy will be become a build artifact.
#
param([int] $BuildNumber = 0)

$mod = Resolve-Path .\LINQToTTree\BuildScripts\BuildUtils.psm1
$policy = Get-ExecutionPolicy
Import-Module $mod

#
# Some config - which might oneday be passed in as arguments!
#

$release = "x86\Release"
$NameSuffix = "-ci"

#
# The CI builder has already done all the hard work for us, so we need to just go
# and get everything.
#

# First, we need to put together the version number that we will use to register
# this nuget package

$FileVersion = (Get-Item "LINQToTTree\LINQToTTreeLib\bin\$release\LINQToTTreeLib.dll").VersionInfo.ProductVersion -split "\."
$FileVersion[3] = $BuildNumber
$version = $FileVersion -join "."

# Next, do the nuget build!

#-nugetDistroDirectory $nugetPackageDir 
$currentPath = Resolve-Path "."
build-LINQToTTree-nuget-packages $currentPath $currentPath $version -PDB:$PDB -NameSuffix $NameSuffix -Release $release

Allow the build number to be passed in and added to the version number.
Allow the build number to be passed in and added to the version number.
