From 6e3ade16720c24ad13882a595a7afbd2795c6b40 Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Mon, 16 Nov 2015 10:45:19 -0800 Subject: [PATCH] fix issue with release build on VSO --- scripts/compile.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/compile.ps1 b/scripts/compile.ps1 index d91a7bbe360f..1f0166264b9c 100644 --- a/scripts/compile.ps1 +++ b/scripts/compile.ps1 @@ -61,7 +61,11 @@ Download it from https://www.cmake.org mkdir $HostDir | Out-Null } cp "$RepoRoot\src\corehost\cmake\$Rid\$Configuration\corehost.exe" $HostDir - cp "$RepoRoot\src\corehost\cmake\$Rid\$Configuration\corehost.pdb" $HostDir + + if (Test-Path "$RepoRoot\src\corehost\cmake\$Rid\$Configuration\corehost.pdb") + { + cp "$RepoRoot\src\corehost\cmake\$Rid\$Configuration\corehost.pdb" $HostDir + } } finally { popd }