Skip to content

Commit

Permalink
Latest insider artifacts fail building in compilerfolder (#3213)
Browse files Browse the repository at this point in the history
Latest insider artifacts fail building in compilerfolder

`AL-Go action ran: RunPipeline Telemetry Correlation Id:
5f39d8a8-e12d-4443-bbe1-9ffe5b053643
Error: Unexpected error when running action. Error Message: Exception
calling "Create" with "2" argument(s): "Could not load file or assembly
'System.IO.Packaging, Version=4.0.5.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system
cannot find the file specified.", StackTrace: at GetAppInfo,
C:\ProgramData\BcContainerHelper\6.0.1-preview1082\BcContainerHelper\HelperFunctions.ps1:
line 1154 <- at Compile-AppWithBcCompilerFolder,
C:\ProgramData\BcContainerHelper\6.0.1-preview1082\BcContainerHelper\CompilerFolderHandling\Compile-AppWithBcCompilerFolder.ps1:
line 178 `
  • Loading branch information
aholstrup1 authored Oct 20, 2023
1 parent 92311ff commit c4ca947
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions AppHandling/Compile-AppInNavContainer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ try {
$alcPath = 'C:\build\vsix\extension\bin'
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)
Add-Type -Path (Join-Path $alcPath Microsoft.Dynamics.Nav.CodeAnalysis.dll)

$packageStream = [System.IO.File]::OpenRead($symbolsFile)
Expand Down
3 changes: 2 additions & 1 deletion HelperFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,7 @@ 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)
LoadDLL -Path (Join-Path $alcDllPath Microsoft.Dynamics.Nav.CodeAnalysis.dll)
$assembliesAdded = $true
}
Expand Down Expand Up @@ -1247,4 +1248,4 @@ function DetermineVsixFile {
else {
return $vsixFile
}
}
}

0 comments on commit c4ca947

Please sign in to comment.