mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Move DLL load into PSD1
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
@{
|
||||
# Assemblies that must be loaded prior to importing this module
|
||||
RequiredAssemblies = @('.\EPPlus.dll')
|
||||
|
||||
|
||||
# Script module or binary module file associated with this manifest.
|
||||
RootModule = 'ImportExcel.psm1'
|
||||
@@ -45,9 +48,6 @@ Check out the How To Videos https://www.youtube.com/watch?v=U3Ne_yX4tYo&list=PL5
|
||||
# Modules that must be imported into the global environment prior to importing this module
|
||||
# RequiredModules = @()
|
||||
|
||||
# Assemblies that must be loaded prior to importing this module
|
||||
# RequiredAssemblies = @()
|
||||
|
||||
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
|
||||
# ScriptsToProcess = @()
|
||||
|
||||
|
||||
@@ -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."}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user