ImagePlayground.Libraries.ps1

if ($PSEdition -eq 'Core') {
    $LibrariesToLoad = @(
        'Lib\Standard\Barcoder.dll'
        'Lib\Standard\Barcoder.Renderer.Image.dll'
        'Lib\Standard\BarcodeReader.ImageSharp.dll'
        'Lib\Standard\Codeuctivity.ImageSharpCompare.dll'
        'Lib\Standard\ImagePlayground.dll'
        'Lib\Standard\ImagePlayground.PowerShell.dll'
        'Lib\Standard\QRCoder.dll'
        'Lib\Standard\ScottPlot.dll'
        'Lib\Standard\SixLabors.Fonts.dll'
        'Lib\Standard\SixLabors.ImageSharp.dll'
        'Lib\Standard\SixLabors.ImageSharp.Drawing.dll'
        'Lib\Standard\System.Buffers.dll'
        'Lib\Standard\System.Collections.Concurrent.dll'
        'Lib\Standard\System.Drawing.Common.dll'
        'Lib\Standard\System.IO.FileSystem.Primitives.dll'
        'Lib\Standard\System.IO.UnmanagedMemoryStream.dll'
        'Lib\Standard\System.Management.Automation.dll'
        'Lib\Standard\System.Memory.dll'
        'Lib\Standard\System.Numerics.Vectors.dll'
        'Lib\Standard\System.Runtime.CompilerServices.Unsafe.dll'
        'Lib\Standard\System.Text.Encoding.CodePages.dll'
        'Lib\Standard\System.Threading.dll'
        'Lib\Standard\System.Threading.Tasks.Parallel.dll'
        'Lib\Standard\zxing.dll'
        'Lib\Standard\ZXing.ImageSharp.V2.dll'
    )
    foreach ($L in $LibrariesToLoad) {
        Add-Type -Path $PSScriptRoot\$L
    }
} else {
    $LibrariesToLoad = @(
        'Lib\Default\Barcoder.dll'
        'Lib\Default\Barcoder.Renderer.Image.dll'
        'Lib\Default\BarcodeReader.ImageSharp.dll'
        'Lib\Default\Codeuctivity.ImageSharpCompare.dll'
        'Lib\Default\ImagePlayground.dll'
        'Lib\Default\ImagePlayground.PowerShell.dll'
        'Lib\Default\QRCoder.dll'
        'Lib\Default\ScottPlot.dll'
        'Lib\Default\SixLabors.Fonts.dll'
        'Lib\Default\SixLabors.ImageSharp.dll'
        'Lib\Default\SixLabors.ImageSharp.Drawing.dll'
        'Lib\Default\System.Buffers.dll'
        'Lib\Default\System.Drawing.Common.dll'
        'Lib\Default\System.Management.Automation.dll'
        'Lib\Default\System.Memory.dll'
        'Lib\Default\System.Numerics.Vectors.dll'
        'Lib\Default\System.Runtime.CompilerServices.Unsafe.dll'
        'Lib\Default\System.Text.Encoding.CodePages.dll'
        'Lib\Default\System.ValueTuple.dll'
        'Lib\Default\zxing.dll'
        'Lib\Default\ZXing.ImageSharp.V2.dll'
        'Lib\Default\zxing.presentation.dll'
    )
    foreach ($L in $LibrariesToLoad) {
        Add-Type -Path $PSScriptRoot\$L
    }
}