functions/internal/Add-PackageTypes.ps1

1
2
3
4
5
6
7
8
9
10
11
12
function Add-PackageTypes {
    param(
        [Parameter(Mandatory = $true)]
        [string]$LibsDirectory
    )

    process {
        foreach ($path in (Get-ChildItem $LibsDirectory | Where-Object { $_.Name -like '*.dll' } | Select-Object -ExpandProperty FullName)) {
            Add-Type -Path $path
        }
    }
}