From 9a1d91db0b33180266daf5af1c7cacf42fe04a82 Mon Sep 17 00:00:00 2001 From: Keith Dahlby Date: Mon, 30 Jan 2017 19:38:22 -0600 Subject: [PATCH] Specify local version to install --- chocolatey/packAndLocalInstall.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chocolatey/packAndLocalInstall.ps1 b/chocolatey/packAndLocalInstall.ps1 index 4afd735d5..90ee8262f 100644 --- a/chocolatey/packAndLocalInstall.ps1 +++ b/chocolatey/packAndLocalInstall.ps1 @@ -1,4 +1,9 @@ pushd $PSScriptRoot + +$nuspec = [xml](Get-Content poshgit.nuspec) +$version = $nuspec.package.metadata.version + choco pack poshgit.nuspec -choco install -f -y poshgit -pre -s . +choco install -f -y poshgit -pre --version=$version -s . + popd