Closed DanielGoehler closed 7 months ago
We get a similar message, but in another location:
2024-04-08T06:55:05.1603113Z ##[error][31;1mImport-Module: [0m
[31;1m[36;1mLine |[0m
[31;1m[36;1m[36;1m 4 | [0m [36;1mImport-Module 'C:\bcartifacts.cache\onprem\24.0.16410.18056\platform\[0m …[0m
[31;1m[36;1m[36;1m[0m[36;1m[0m[36;1m | [31;1m ~~~~~~~~~~~~~~~~~[0m
[31;1m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m | [31;1mCould not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.[0m
[31;1mImport-Module: [0m
[31;1m[36;1mLine |[0m
[31;1m[36;1m[36;1m 5 | [0m [36;1mImport-Module 'C:\bcartifacts.cache\onprem\24.0.16410.18056\platform\[0m …[0m
[31;1m[36;1m[36;1m[0m[36;1m[0m[36;1m | [31;1m ~~~~~~~~~~~~~~~~~[0m
[31;1m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m | [31;1mCould not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.[0m
[31;1mImport-Module: [0m
[31;1m[36;1mLine |[0m
[31;1m[36;1m[36;1m 6 | [0m [36;1mImport-Module 'C:\bcartifacts.cache\onprem\24.0.16410.18056\platform\[0m …[0m
[31;1m[36;1m[36;1m[0m[36;1m[0m[36;1m | [31;1m ~~~~~~~~~~~~~~~~~[0m
[31;1m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m | [31;1mCould not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.[0m
[31;1mInvalidOperation: [0m
[31;1m[36;1mLine |[0m
[31;1m[36;1m[36;1m 28 | [0m … p6823.tmp', [36;1m[Microsoft.Dynamics.Nav.Management.Helpers.SerializationH[0m …[0m
[31;1m[36;1m[36;1m[0m[36;1m[0m[36;1m | [31;1m ~~~~~~~~~~~~~[0m
[31;1m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m | [31;1mUnable to find type [Microsoft.Dynamics.Nav.Management.Helpers.SerializationHelper].[0m
It is weird that it references an OnPrem even though we are deploying to a SaaS sandbox.
Is this related to #745?
Is this related to #745?
To answer my own question: we applied the solution mentioned in #745 and that indeed fixed the deployments (and presumably the builds)
Double-checked that PowerShell 7 and DotNet 8 are installed on the Build Agent and restarted the server, but the problem persists.
Can you try to install the test tool like this?
- task: ALOpsAppPublish@1
displayName: 'ALOPS - Install AL TestTool' # install necessary dependent apps for testability
inputs:
usedocker: true
skip_verification: true
installaltesttool: true
install_al_app_names: |
Library Assert
Tests-TestLibraries
System Application Test
System Application Test Library
Any
Test Runner
Permissions Mock
Library Variable Storage
Dear @DanielGoehler,
Please check our latest release v1.464.6041, we fixed an issue with dependency tree analysis that should solve the "Permission Mock". Thanks for the replication example, this enabled us fixing this more quickly.
Please Use the template for installing the tests as described bu @waldo1001 https://github.com/HodorNV/ALOps/issues/747#issuecomment-2042986245
Kind regards,
@AdminHodor This works, thanks!
Describe the bug With BC 24 ALOpsAppPublish with installaltesttool : true doesn't work anymore and results in an error message:
the used yaml please provide the yaml that you used. It helps you put the yaml like this:
the output Also the complete output is necessary for us to see what is going on. Also use backtics: