netstandard2.0/UniversalDashboard.psm1

$DebugFormat = Test-Path "$PSScriptRoot/PowerShellProTools.UniversalDashboard.dll"
if ($DebugFormat) {
    Import-Module "$PSScriptRoot/PowerShellProTools.UniversalDashboard.dll"
}
else 
{
    if ($PSEdition -eq "Desktop") {
        Import-Module -Name "$PSScriptRoot/net462/PowerShellProTools.UniversalDashboard.dll" | Out-Null
    } else {
        Import-Module -Name "$PSScriptRoot/netstandard2.0/PowerShellProTools.UniversalDashboard.dll" | Out-Null
    }    
}

if (-not $IsRunningInUniversalDashboard -and (Test-Path (Join-Path $PSScriptRoot "license.lic"))) {
    Set-UDLicense -License (Get-Content (Join-Path $PSScriptRoot "license.lic"))
}

Import-Module (Join-Path $PSScriptRoot "UniversalDashboardServer.psm1")
Import-Module (Join-Path $PSScriptRoot "UniversalDashboard.Controls.psm1")