Move DLL load into PSD1

This commit is contained in:
jhoneill
2019-11-30 15:28:31 +00:00
parent 6508043bc0
commit d1c347285f
2 changed files with 3 additions and 5 deletions

View File

@@ -1,6 +1,4 @@
#region import everything we need
Add-Type -Path "$($PSScriptRoot)\EPPlus.dll"
try {[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")}
catch {Write-Warning -Message "System.Drawing could not be loaded. Color and font look-ups may not be available."}