We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b604b86 commit b11fadbCopy full SHA for b11fadb
OpenXML.psm1
@@ -5,3 +5,11 @@ foreach ($file in Get-ChildItem -Path $CommandsPath -Filter '*-*.ps1') {
5
}
6
. $file.FullName
7
8
+
9
+if (-not ('IO.Packaging.Package' -as [type])) {
10
+ $addedTypes = Add-type -AssemblyName System.IO.Packaging -PassThru
11
+ $packageTypeFound = $addedTypes | Where-Object FullName -eq 'System.IO.Packaging.Package'
12
+ if (-not $packageTypeFound) {
13
+ Write-Warning "Could not find [IO.Packaging.Package]"
14
+ }
15
+}
0 commit comments