diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-11 16:11:28 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-04-11 16:32:45 -0700 |
| commit | 92c0a91d3fdd9a9df5d3feae611981ea170703f5 (patch) | |
| tree | 0632532390d5b040350bfcd844b0bda4f707ede7 /scripts/buildsystems/msbuild/applocal.ps1 | |
| parent | 1513062f0bfba77baf7efd51de6e9d865bee70b7 (diff) | |
| download | vcpkg-92c0a91d3fdd9a9df5d3feae611981ea170703f5.tar.gz vcpkg-92c0a91d3fdd9a9df5d3feae611981ea170703f5.zip | |
[vcpkg-msbuild] Fix line wrapping bug on Win7.
On Win7, calling powershell via MSBuild results in normal output lines being split based on the ConHost system-wide default line length settings.
The fix is to first write all the lines to a file, then load that file as into an MSBuild ItemGroup. This avoids all interaction with ConHost.
Diffstat (limited to 'scripts/buildsystems/msbuild/applocal.ps1')
| -rw-r--r-- | scripts/buildsystems/msbuild/applocal.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/buildsystems/msbuild/applocal.ps1 b/scripts/buildsystems/msbuild/applocal.ps1 index 21e42d479..425c34961 100644 --- a/scripts/buildsystems/msbuild/applocal.ps1 +++ b/scripts/buildsystems/msbuild/applocal.ps1 @@ -1,5 +1,5 @@ [cmdletbinding()] -param([string]$targetBinary, [string]$installedDir, [string]$tlogFile) +param([string]$targetBinary, [string]$installedDir, [string]$tlogFile, [string]$copiedFilesLog) $g_searched = @{} # Note: installedDir is actually the bin\ directory. @@ -14,7 +14,7 @@ function deployBinary([string]$targetBinaryDir, [string]$SourceDir, [string]$tar Write-Verbose " ${targetBinaryName}: Copying $SourceDir\$targetBinaryName" Copy-Item "$SourceDir\$targetBinaryName" $targetBinaryDir } - "$targetBinaryDir\$targetBinaryName" + if ($copiedFilesLog) { Add-Content $copiedFilesLog "$targetBinaryDir\$targetBinaryName" } if ($tlogFile) { Add-Content $tlogFile "$targetBinaryDir\$targetBinaryName" } } |
