dynamics365-release-automation-tools.psm1
##------------------------------------------- ## Load Script Libraries ##------------------------------------------- $functions = @(Get-ChildItem -Path $PSModule.ModuleBase\functions\*.ps1 -ErrorAction SilentlyContinue) $model = @(Get-ChildItem -Path $PSModule.ModuleBase\model\*.ps1 -ErrorAction SilentlyContinue) Write-Host "ddfv$($PSModule.ModuleBase)" #Dot source the files Foreach($import in @($model + $functions)) { Try { . $import.fullname #Write-Host $import.fullname } Catch { Write-Error -Message "Failed to import function $($import.fullname): $_" } } Export-ModuleMember -Function $functions.Basename Export-ModuleMember -Function $model.Basename |