bin/Loader.ps1

if($PSVersionTable["PSEdition"] -eq "Core") {
    "netstandard2.0/zxing.dll" | ForEach-Object {
        $DllPath = Join-Path $PSScriptRoot $_
        Add-Type -Path $DllPath
    }
} else {
    "net45/zxing.dll", "net45/zxing.presentation.dll" | ForEach-Object {
        $DllPath = Join-Path $PSScriptRoot $_
        Add-Type -Path $DllPath
    }
}