buildscripts/build.ps1
$ErrorActionPreference = 'Stop' try { ## Update module version in manifest $manifestFilePath = "$env:APPVEYOR_BUILD_FOLDER\PSADSync.psd1" $updateParams = @{ Path = $manifestFilePath OutputPath = $manifestFilePath ModuleVersion = $env:APPVEYOR_BUILD_VERSION FunctionsToExport = 'Invoke-AdSync' } Update-ModuleManifest @updateParams } catch { $host.SetShouldExit($LastExitCode) } |