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

This commit is contained in:
Travis Plunk
2018-03-12 17:35:56 -07:00
parent b3464ebbfc
commit 2640d66ace
+7 -1
View File
@@ -488,7 +488,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)