check for packaging dll (#3266)
Apparently the packaging DLL is not availbale in version 15 and earlier. Co-authored-by: freddydk <freddydk@users.noreply.github.com>
This commit is contained in:
Родитель
0bb4fd7db9
Коммит
b6b4a67251
|
@ -518,7 +518,9 @@ try {
|
|||
else {
|
||||
Add-Type -Path (Join-Path $alcPath Newtonsoft.Json.dll)
|
||||
Add-Type -Path (Join-Path $alcPath System.Collections.Immutable.dll)
|
||||
Add-Type -Path (Join-Path $alcPath System.IO.Packaging.dll)
|
||||
if (Test-Path (Join-Path $alcPath System.IO.Packaging.dll)) {
|
||||
Add-Type -Path (Join-Path $alcPath System.IO.Packaging.dll)
|
||||
}
|
||||
Add-Type -Path (Join-Path $alcPath Microsoft.Dynamics.Nav.CodeAnalysis.dll)
|
||||
|
||||
$packageStream = [System.IO.File]::OpenRead($symbolsFile)
|
||||
|
|
|
@ -1164,7 +1164,9 @@ function GetAppInfo {
|
|||
Add-Type -AssemblyName System.Text.Encoding
|
||||
LoadDLL -Path (Join-Path $alcDllPath Newtonsoft.Json.dll)
|
||||
LoadDLL -Path (Join-Path $alcDllPath System.Collections.Immutable.dll)
|
||||
LoadDLL -Path (Join-Path $alcDllPath System.IO.Packaging.dll)
|
||||
if (Test-Path (Join-Path $alcDllPath System.IO.Packaging.dll)) {
|
||||
LoadDLL -Path (Join-Path $alcDllPath System.IO.Packaging.dll)
|
||||
}
|
||||
LoadDLL -Path (Join-Path $alcDllPath Microsoft.Dynamics.Nav.CodeAnalysis.dll)
|
||||
$assembliesAdded = $true
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче