LegacyNetworking.psm1
## Import localisation strings Import-LocalizedData -BindingVariable localized -FileName Resources.psd1; ## Import the \Lib files. This permits loading of the module's functions for unit testing, without having to unload/load the module. $moduleRoot = Split-Path -Path $MyInvocation.MyCommand.Path -Parent; $moduleLibPath = Join-Path -Path $moduleRoot -ChildPath 'Lib'; $moduleSrcPath = Join-Path -Path $moduleRoot -ChildPath 'Src'; Get-ChildItem -Path $moduleLibPath,$moduleSrcPath -Include *.ps1 -Exclude '*.Tests.ps1' -Recurse | ForEach-Object { Write-Verbose -Message ('Importing library\source file ''{0}''.' -f $_.FullName); . $_.FullName; } |