WinRT: allowed NuGet packaging code to get hg revision regardless of cwd
This commit is contained in:
parent
357886616e
commit
c174bd0e14
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ if ($DidAnyDLLBuildFail -eq $true) {
|
||||||
Write-Host -ForegroundColor Cyan "... via NuGet install: $NugetPath"
|
Write-Host -ForegroundColor Cyan "... via NuGet install: $NugetPath"
|
||||||
$NugetOutputDir = "$PSScriptRoot\..\VisualC-WinRT\lib\nuget"
|
$NugetOutputDir = "$PSScriptRoot\..\VisualC-WinRT\lib\nuget"
|
||||||
Write-Host -ForegroundColor Cyan "... output directory: $NugetOutputDir"
|
Write-Host -ForegroundColor Cyan "... output directory: $NugetOutputDir"
|
||||||
$SDLHGRevision = $($(hg log -l 1 | select-string "changeset") -Replace "changeset:\W*(\d+).*",'$1') 2>$null
|
$SDLHGRevision = $($(hg log -l 1 --repository "$PSScriptRoot\.." | select-string "changeset") -Replace "changeset:\W*(\d+).*",'$1') 2>$null
|
||||||
Write-Host -ForegroundColor Cyan "... HG Revision: $SDLHGRevision"
|
Write-Host -ForegroundColor Cyan "... HG Revision: $SDLHGRevision"
|
||||||
|
|
||||||
# Base options to nuget.exe
|
# Base options to nuget.exe
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue