diff --git a/build/FrameworkPackage/MakeFrameworkPackage.ps1 b/build/FrameworkPackage/MakeFrameworkPackage.ps1 index e54d84c41f..6188b0f70f 100644 --- a/build/FrameworkPackage/MakeFrameworkPackage.ps1 +++ b/build/FrameworkPackage/MakeFrameworkPackage.ps1 @@ -252,7 +252,7 @@ Write-Host $makeappx cmd /c $makeappx if ($LastExitCode -ne 0) { Exit 1 } -if ($env:TFS_ToolsDirectory -and ($env:BUILD_DEFINITIONNAME -match "_release")) +if ($env:TFS_ToolsDirectory -and ($env:BUILD_DEFINITIONNAME -match "_release") -and $env:UseSimpleSign) { # From MakeAppxBundle in the XES tools $signToolPath = $env:TFS_ToolsDirectory + "\bin\SimpleSign.exe"