It appears that the default powershell execution policy prevents the sdv
target from running staticdv so we need to set the policy to 'Bypass'
before running msbuild.exe.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
$platform = @{ "x86" = "Win32"; "x64" = "x64" }
$solutionpath = Resolve-Path $SolutionDir
+Set-ExecutionPolicy -Scope CurrentUser -Force Bypass
+
if ($Type -eq "free") {
Run-MSBuild $solutionpath "xenbus.sln" $configuration["free"] $platform[$Arch]
}