Clean the intermediate artifact 'psoptions.json' from build (#6356)

This commit is contained in:
Travis Plunk
2018-03-10 09:51:23 -08:00
committed by Dongbo Wang
parent bcf86d4f8a
commit 25ecf8c83c
+7 -1
View File
@@ -492,7 +492,13 @@ function Expand-PSSignedBuild
Restore-PSModuleToBuild -PublishPath $buildPath
$options = Get-Content -Path (Join-Path $buildPath -ChildPath 'psoptions.json') | ConvertFrom-Json
$psOptionsPath = Join-Path $buildPath -ChildPath 'psoptions.json'
$options = Get-Content -Path $psOptionsPath | ConvertFrom-Json
# Remove PSOptions.
# The file is only used to set the PSOptions.
Remove-Item -Path $psOptionsPath
$options.PSModuleRestore = $true
if(Test-Path -Path $windowsExecutablePath)