]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Call Set-ExecutionPolicy in msbuild.exe
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 29 Apr 2019 12:05:06 +0000 (13:05 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Mon, 29 Apr 2019 12:05:06 +0000 (13:05 +0100)
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>
msbuild.ps1

index 8da3fda56d820fab5e48a4ab4d9d55d24d8ea177..f96abdb8aa4e7cebe5c1f028629c99f44cc10536 100644 (file)
@@ -70,6 +70,8 @@ $configuration = @{ "free" = "$ConfigurationBase Release"; "checked" = "$Configu
 $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]
 }