Skip to content

Commit cbbdadc

Browse files
committed
Fox wrong path (with/without spaces)
1 parent e2b8c65 commit cbbdadc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Scripts/PreBuildEventCommandLine.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ param(
55
[String]$OutPath
66
)
77

8+
# Fix wrong path
9+
# Quotation marks are required if a blank is in the path... If there is no blank space in the path, a quote will be add to the end...
10+
# VS prebuild event call: PowerShell.exe -ExecutionPolicy Bypass -NoProfile -File "$(ProjectDir)..\..\Scripts\PreBuildEventCommandLine.ps1" "$(TargetDir)"
11+
if(-not($OutPath.StartsWith('"')))
12+
{
13+
$OutPath = $OutPath.TrimEnd('"')
14+
}
15+
816
# Test if files are already there...
917
if((Test-Path -Path "$OutPath\MSTSCLib.dll") -and (Test-Path -Path "$OutPath\AxMSTSCLib.dll"))
1018
{

0 commit comments

Comments
 (0)