HodorNV / ALOps

ALOps
59 stars 24 forks source link

NextMajor is failing - System.Collections.Immutable, Version=1.2.3.0 not found #500

Closed pri-kise closed 2 years ago

pri-kise commented 2 years ago

Describe the bug Suddenly today one NextMajor Pipeline stopped working with a strange error.

the used yaml please provide the yaml that you used. It helps you put the yaml like this:

name: $(Build.BuildId)

variables:
- name: 'AppVersion'
  value: '1.0.*.0'
- group: 'ALOps Settings'

pool:
  name: BusinessCentralCompilerV2

trigger:
- master

steps:
- checkout: self
  clean: true

- task: ALOpsAppCompiler@2
  inputs:
    sastoken: $(sasToken)
    artifacttype: Sandbox
    artifactcountry: de
    versionselect: 'NextMajor'
    appversiontemplate: '$(AppVersion)'
    alcodeanalyzer: 'AppSourceCop,CodeCop,PerTenantExtensionCop,UICop'
    publishartifact: false

the output

2022-05-03T05:51:14.6864857Z ##[section]Starting: ALOpsAppCompiler
2022-05-03T05:51:14.7143348Z ==============================================================================
2022-05-03T05:51:14.7143725Z Task         : ALOps App Compiler
2022-05-03T05:51:14.7144012Z Description  : Compile AL Extension(s) for Business Central
2022-05-03T05:51:14.7144292Z Version      : 2.0.2984
2022-05-03T05:51:14.7144484Z Author       : Hodor
2022-05-03T05:51:14.7144875Z Help         : Compile Business Central extension(s) from AL code.
2022-05-03T05:51:14.7145342Z ==============================================================================
2022-05-03T05:51:16.8314517Z ******************************************************************************
2022-05-03T05:51:16.8318589Z *** ALOps v2 - Preview                                                     ***
2022-05-03T05:51:16.8326502Z ******************************************************************************
2022-05-03T05:51:16.8354411Z *** Importing required ALOps-Functions
2022-05-03T05:51:17.3201578Z *** Task Inputs:
2022-05-03T05:51:17.3303570Z 
2022-05-03T05:51:17.3315455Z name                                             value                                                                 
2022-05-03T05:51:17.3317451Z ----                                             -----                                                                 
2022-05-03T05:51:17.3318849Z artifactversion                                                                                                        
2022-05-03T05:51:17.3320228Z artifacttype                                     Sandbox                                                               
2022-05-03T05:51:17.3321619Z artifactcountry                                  de                                                                    
2022-05-03T05:51:17.3323001Z versionselect                                    NextMajor                                                             
2022-05-03T05:51:17.3324410Z alternativevsixurl                                                                                                     
2022-05-03T05:51:17.3325827Z alsourcepath                                     C:\agent\_work\133\s                                                  
2022-05-03T05:51:17.3327211Z ruleset                                                                                                                
2022-05-03T05:51:17.3328562Z appversiontemplate                               1.0.*.0                                                               
2022-05-03T05:51:17.3329932Z updatebuildnumber                                True                                                                  
2022-05-03T05:51:17.3337285Z appfilenametemplate                              %APP_PUBLISHER%_%APP_NAME%_%APP_VERSION%_%BC_TYPE%_%BC_VERSION%_%BC...
2022-05-03T05:51:17.3338833Z alcodeanalyzer                                   AppSourceCop,CodeCop,PerTenantExtensionCop,UICop                      
2022-05-03T05:51:17.3340275Z showmycode                                       Keep                                                                  
2022-05-03T05:51:17.3341673Z resourceexposurepolicy_allowdebugging            Keep                                                                  
2022-05-03T05:51:17.3343106Z resourceexposurepolicy_allowdownloadingsource    Keep                                                                  
2022-05-03T05:51:17.3344846Z resourceexposurepolicy_includesourceinsymbolfile Keep                                                                  
2022-05-03T05:51:17.3346417Z applicationinsightskey                                                                                                 
2022-05-03T05:51:17.3347818Z alcachepath                                      C:\agent\_work\133\s                                                  
2022-05-03T05:51:17.3349515Z publishartifact                                  False                                                                 
2022-05-03T05:51:17.3352831Z publishxlif                                      False                                                                 
2022-05-03T05:51:17.3354240Z failonwarnings                                   False                                                                 
2022-05-03T05:51:17.3355600Z storageaccount                                                                                                         
2022-05-03T05:51:17.3363051Z sastoken                                         
2022-05-03T05:51:17.3364519Z printappmanifest                                 True                                                                  
2022-05-03T05:51:17.3365907Z outputalclogs                                    True                                                                  
2022-05-03T05:51:17.3367295Z additionalprobingpaths                                                                                                 
2022-05-03T05:51:17.3389536Z 
2022-05-03T05:51:17.3395438Z 
2022-05-03T05:51:17.3575726Z 
2022-05-03T05:51:17.3584405Z *** For documentation, please visit   : https://www.alops.be/documentation
2022-05-03T05:51:17.3658373Z 
2022-05-03T05:51:17.6888966Z *** Importing required Task-Functions
2022-05-03T05:51:21.9850159Z 
2022-05-03T05:51:22.0205670Z *** Artifact Type   : [Sandbox]
2022-05-03T05:51:22.0346932Z *** Artifact Version: []
2022-05-03T05:51:22.0495710Z *** Artifact Country: [de]
2022-05-03T05:51:22.0611541Z *** AL Source Path  : [C:\agent\_work\133\s]
2022-05-03T05:51:22.0811070Z *** AL Cache Path   : [C:\agent\_work\133\s]
2022-05-03T05:51:22.0821658Z 
2022-05-03T05:51:22.0825187Z 
2022-05-03T05:51:22.0838004Z *** Default Working Folder: C:\agent\_work\133\s
2022-05-03T05:51:22.0842923Z *** Artifact Folder       : C:\agent\_work\133\a
2022-05-03T05:51:22.0933510Z *** Agent Tool Folder     : C:\agent\_work\_tool
2022-05-03T05:51:22.0938691Z *** Agent Temp Folder     : C:\agent\_work\_temp
2022-05-03T05:51:22.0940726Z 
2022-05-03T05:51:22.1000406Z *** Resolving Path: [C:\agent\_work\133\s]
2022-05-03T05:51:22.1006414Z *** AL Source Folder      : C:\agent\_work\133\s
2022-05-03T05:51:22.1019762Z *** Resolving Path: [C:\agent\_work\133\s]
2022-05-03T05:51:22.1022847Z *** AL Cache Folder       : C:\agent\_work\133\s
2022-05-03T05:51:22.1037886Z 
2022-05-03T05:51:22.1105945Z *** Check BcContainerHelper
2022-05-03T05:51:22.1982176Z *** Load BcContainerHelper
2022-05-03T05:51:22.7472501Z BcContainerHelper version 3.0.0
2022-05-03T05:51:22.7512189Z BcContainerHelper emits usage statistics telemetry to Microsoft
2022-05-03T05:51:23.5545136Z 
2022-05-03T05:51:23.5617105Z 
2022-05-03T05:51:23.5644203Z ##[command]"Get-BCArtifactUrl" 
2022-05-03T05:51:23.5645067Z Name                           Value                                                                                   
2022-05-03T05:51:23.5712026Z ----                           -----                                                                                   
2022-05-03T05:51:23.5713175Z sasToken                       
2022-05-03T05:51:23.5714080Z select                         NextMajor                                                                               
2022-05-03T05:51:23.5714762Z type                           Sandbox                                                                                 
2022-05-03T05:51:23.5715395Z country                        de                                                                                      
2022-05-03T05:51:23.5715798Z 
2022-05-03T05:51:23.5923596Z 
2022-05-03T05:51:23.6017697Z  -sasToken: *** -select: NextMajor -type: Sandbox -country: de
2022-05-03T05:51:38.1968557Z Downloading application artifact /sandbox/21.0.40001.0/de
2022-05-03T05:51:38.2053626Z Downloading C:\Users\script-service\AppData\Local\Temp\8e8c4e98-a553-4bfd-af04-2f6d95c7b5d8.zip
2022-05-03T05:51:49.1615753Z Unpacking application artifact to tmp folder using 7zip
2022-05-03T05:51:56.9324650Z Downloading platform artifact /sandbox/21.0.40001.0/platform
2022-05-03T05:51:56.9340011Z Downloading C:\Users\script-service\AppData\Local\Temp\6675b549-8390-4215-b3a0-115085787334.zip
2022-05-03T05:52:13.7052435Z Unpacking platform artifact to tmp folder using 7zip
2022-05-03T05:52:31.8099551Z Downloading Prerequisite Components
2022-05-03T05:52:31.8306112Z Downloading c:\bcartifacts.cache\sandbox\21.0.40001.0\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
2022-05-03T05:52:31.9629404Z Downloading c:\bcartifacts.cache\sandbox\21.0.40001.0\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
2022-05-03T05:52:32.3372874Z Downloading c:\bcartifacts.cache\sandbox\21.0.40001.0\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
2022-05-03T05:52:35.8527212Z *** Platform: c:\bcartifacts.cache\sandbox\21.0.40001.0\platform
2022-05-03T05:52:35.8851069Z *** Localisation: c:\bcartifacts.cache\sandbox\21.0.40001.0\de
2022-05-03T05:52:35.8898074Z *** BC Management DLL: C:\bcartifacts.cache\sandbox\21.0.40001.0\platform\ServiceTier\program files\Microsoft Dynamics NAV\210\Service\Microsoft.Dynamics.Nav.Management.dll
2022-05-03T05:52:36.4617375Z *** BC App Management DLL: C:\bcartifacts.cache\sandbox\21.0.40001.0\platform\ServiceTier\program files\Microsoft Dynamics NAV\210\Service\Microsoft.Dynamics.Nav.Apps.Management.dll
2022-05-03T05:52:36.9015338Z *** Get [*.app] and [app.json] files recursive from [C:\agent\_work\133\s]
2022-05-03T05:52:36.9447234Z *** Found [1] file.
2022-05-03T05:52:36.9493148Z *** Extract App detail from [C:\agent\_work\133\s\MainApp\app.json]
2022-05-03T05:52:37.0173503Z *** Starting Batch compile of Apps:
2022-05-03T05:52:37.0190200Z   * C:\agent\_work\133\s\MainApp
2022-05-03T05:52:37.0220892Z *** Start Compiling: [C:\agent\_work\133\s\MainApp]
2022-05-03T05:52:37.1468199Z *** Get App Information
2022-05-03T05:52:37.1489961Z *** Loading Json Object: [C:\agent\_work\133\s\MainApp\app.json]
2022-05-03T05:52:37.1500721Z   * Id         : 
2022-05-03T05:52:37.1504622Z   * Publisher  : publisher
2022-05-03T05:52:37.1531025Z   * Name       :  AppName
2022-05-03T05:52:37.1557589Z   * Description: AppName
2022-05-03T05:52:37.1567128Z *** Check Runtime: [5.0]
2022-05-03T05:52:37.1649949Z *** Runtime: 5
2022-05-03T05:52:37.1707968Z *** Removing ResourceExposurePolicy
2022-05-03T05:52:37.2234063Z *** Setting Managed App Version [C:\agent\_work\133\s\MainApp\app.json] =>  1.0.13316.0
2022-05-03T05:52:37.2496978Z *** VSCode Settings: [C:\agent\_work\133\s\MainApp\.vscode\settings.json]
2022-05-03T05:52:37.2527662Z *** VSCode-Settings json found.
2022-05-03T05:52:37.2579180Z *** Loading Json Object: [C:\agent\_work\133\s\MainApp\.vscode\settings.json]
2022-05-03T05:52:37.2776531Z *** Using Ruleset: [C:\agent\_work\133\s\MainApp\.vscode\ruleset.json]
2022-05-03T05:52:37.2778971Z ##[command]"Get-BCArtifactUrl" 
2022-05-03T05:52:37.2779720Z Name                           Value                                                                                   
2022-05-03T05:52:37.2780428Z ----                           -----                                                                                   
2022-05-03T05:52:37.2781181Z sasToken                       ?sv=2020-08-04&ss=b&srt=sco&spr=https&st=2022-03-15T00%3A00%3A00Z&se=2022-10-01T00%3A...
2022-05-03T05:52:37.2782009Z select                         NextMajor                                                                               
2022-05-03T05:52:37.2782694Z type                           Sandbox                                                                                 
2022-05-03T05:52:37.2783657Z country                        de                                                                                      
2022-05-03T05:52:37.2784278Z 
2022-05-03T05:52:37.2905476Z 
2022-05-03T05:52:37.3384506Z 
2022-05-03T05:52:56.7191287Z *** Platform: c:\bcartifacts.cache\sandbox\21.0.40001.0\platform
2022-05-03T05:52:56.7584740Z *** Localisation: c:\bcartifacts.cache\sandbox\21.0.40001.0\de
2022-05-03T05:52:56.7682724Z *** VSIX Path: C:\bcartifacts.cache\sandbox\21.0.40001.0\platform\ModernDev\program files\Microsoft Dynamics NAV\210\AL Development Environment\ALLanguage.vsix
2022-05-03T05:52:56.7819371Z   * Extracting VSIX to temporary path [c:\bcartifacts.cache\sandbox\21.0.40001.0\VSIX-Temp]
2022-05-03T05:53:40.9511755Z   * Rename temporary VSIX Path [c:\bcartifacts.cache\sandbox\21.0.40001.0\VSIX-Temp] => [c:\bcartifacts.cache\sandbox\21.0.40001.0\VSIX]
2022-05-03T05:53:40.9624398Z *** ALC Path: C:\bcartifacts.cache\sandbox\21.0.40001.0\VSIX\extension\bin\alc.exe
2022-05-03T05:53:40.9639043Z *** Nav.CodeAnalysis Path: C:\bcartifacts.cache\sandbox\21.0.40001.0\VSIX\extension\bin\Microsoft.Dynamics.Nav.CodeAnalysis.dll
2022-05-03T05:53:41.4755109Z ##[error]Die Datei oder Assembly "System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
2022-05-03T05:53:41.5643669Z ##[section]Finishing: ALOpsAppCompiler

Expected behavior We only want to check that our app is working with the latest coming release.

Screenshots

Additional context The app.json is set to the minimal version BC 16.

gonzaloriosley commented 2 years ago

Same here. Wondering if it is ALOps or Microsoft itself.

DanielGoehler commented 2 years ago

Same here.

waldo1001 commented 2 years ago

I can't seem to repro the issue - you still have it?

gonzaloriosley commented 2 years ago

Hi, yes. I had to set it to NextMinor to be able to keep compiling. For me Latest, breaks:

- task: ALOpsAppCompiler@2
      inputs:
        artifacttype: 'Sandbox'
        artifactcountry: 'W1'
        versionselect: 'Latest'
        appversiontemplate: '19.0.0.*'
        appfilenametemplate: '%APP_PUBLISHER%_%APP_NAME%_%APP_VERSION%_%BC_TYPE%_%BC_VERSION%_%BC_COUNTRY%.app'
        publishxlif: true
        failonwarnings: false
        storageaccount: 'bcinsider'
        sastoken: '$(SASToken)'
        publishartifact: true
        alcodeanalyzer: 'UICop,PerTenantExtensionCop,CodeCop
waldo1001 commented 2 years ago

Latest? I thought we were talking about NextMajor?

Please send me the log that is caused by that yaml?

DanielGoehler commented 2 years ago

On our side it works again. Nothing changed on our side.

waldo1001 commented 2 years ago

Nothing changed on our side either - a simple NextMajor hiccup - happened before ;-)

waldo1001 commented 2 years ago

@gonzaloriosley ,

I'd be happy to look into your issue, but since that doesn't have anything to do with the NextMajor, please open a new issue with full yaml and full log so I have enough info!

CarloAxians commented 2 years ago

We have the same issue. I have installed the latest Windows update on the server and installed the latest version of BcContainerHelper. The BC21 builds are all failing and the BC19 and BC20 build are all working fine. Does anyone has an idea how to solve this?

DanielGoehler commented 2 years ago

@waldo1001 Same here. The issue was gone for a few days. Now it is back.

waldo1001 commented 2 years ago

Sidenote: updating BcContainerHelper is not going to help you - for the steps where ALOps uses BCCH, it will update it as well.

waldo1001 commented 2 years ago

I just ran my test-pipelines with NextMajor, and all are working.

Would it be possible to send a repro?

DanielGoehler commented 2 years ago

@waldo1001 What do you need? Have we set up the build agent as recommended: https://www.waldo.be/2020/03/06/devops-build-agents-for-microsoft-dynamics-365-business-central/

DanielGoehler commented 2 years ago

@waldo1001 I can create an Azure VM if it helps analyze the problem, if you can get access to it.

waldo1001 commented 2 years ago

A simple yaml would be nice?

DanielGoehler commented 2 years ago

It is still the yaml above.

CarloAxians commented 2 years ago

Hi @waldo1001

This is our yaml and the output:


            displayName: 'Compile ${{ alsourcepath }} - ${{ country }} ${{ version }}'
            inputs:
              artifacttype: 'Sandbox'
              artifactcountry: '${{ country  }}'
              versionselect: ${{ version }}
              publishartifact: false
              alsourcepath: ${{ alsourcepath }}
              appversiontemplate: ${{ parameters.appversiontemplate }}
              sasToken: ${{ parameters.sasToken }}

2022-05-09T19:11:19.2869783Z ##[section]Starting: Compile base/app.json - nl NextMajor
2022-05-09T19:11:19.3778108Z ==============================================================================
2022-05-09T19:11:19.3778678Z Task         : ALOps App Compiler
2022-05-09T19:11:19.3779158Z Description  : Compile AL Extension(s) for Business Central
2022-05-09T19:11:19.3779610Z Version      : 2.0.2984
2022-05-09T19:11:19.3779964Z Author       : Hodor
2022-05-09T19:11:19.3780430Z Help         : Compile Business Central extension(s) from AL code.
2022-05-09T19:11:19.3780942Z ==============================================================================
2022-05-09T19:11:22.5225774Z ******************************************************************************
2022-05-09T19:11:22.5238762Z *** ALOps v2 - Preview                                                     ***
2022-05-09T19:11:22.5247885Z ******************************************************************************
2022-05-09T19:11:22.5256881Z *** Importing required ALOps-Functions
2022-05-09T19:11:23.2875592Z *** Task Inputs:
2022-05-09T19:11:23.2950496Z 
2022-05-09T19:11:23.3131898Z name                                             value                                                                 
2022-05-09T19:11:23.3134136Z ----                                             -----                                                                 
2022-05-09T19:11:23.3136628Z artifactversion                                                                                                        
2022-05-09T19:11:23.3138878Z artifacttype                                     Sandbox                                                               
2022-05-09T19:11:23.3141216Z artifactcountry                                  nl                                                                    
2022-05-09T19:11:23.3143694Z versionselect                                    NextMajor                                                             
2022-05-09T19:11:23.3145970Z alternativevsixurl                                                                                                     
2022-05-09T19:11:23.3149142Z alsourcepath                                     base/app.json                                                         
2022-05-09T19:11:23.3151811Z ruleset                                                                                                                
2022-05-09T19:11:23.3154555Z appversiontemplate                               ?.?.[yyyyMMdd].*                                                      
2022-05-09T19:11:23.3157323Z updatebuildnumber                                True                                                                  
2022-05-09T19:11:23.3190539Z appfilenametemplate                              %APP_PUBLISHER%_%APP_NAME%_%APP_VERSION%_%BC_TYPE%_%BC_VERSION%_%BC...
2022-05-09T19:11:23.3192132Z alcodeanalyzer                                                                                                         
2022-05-09T19:11:23.3194512Z showmycode                                       Keep                                                                  
2022-05-09T19:11:23.3195877Z resourceexposurepolicy_allowdebugging            Keep                                                                  
2022-05-09T19:11:23.3197968Z resourceexposurepolicy_allowdownloadingsource    Keep                                                                  
2022-05-09T19:11:23.3199955Z resourceexposurepolicy_includesourceinsymbolfile Keep                                                                  
2022-05-09T19:11:23.3202040Z applicationinsightskey                                                                                                 
2022-05-09T19:11:23.3204062Z alcachepath                                      E:\Agent\_work\4\s                                                    
2022-05-09T19:11:23.3206186Z publishartifact                                  False                                                                 
2022-05-09T19:11:23.3210034Z publishxlif                                      False                                                                 
2022-05-09T19:11:23.3210837Z failonwarnings                                   False                                                                 
2022-05-09T19:11:23.3212146Z storageaccount                                                                                                         
2022-05-09T19:11:23.3234174Z sastoken                                         ?sv=2020-08-04&ss=b&srt=sco&spr=https&st=2022-03-15T00%3A00%3A00Z&s...
2022-05-09T19:11:23.3235008Z printappmanifest                                 True                                                                  
2022-05-09T19:11:23.3237081Z outputalclogs                                    True                                                                  
2022-05-09T19:11:23.3239739Z additionalprobingpaths                                                                                                 
2022-05-09T19:11:23.3240260Z 
2022-05-09T19:11:23.3273150Z 
2022-05-09T19:11:23.3284870Z 
2022-05-09T19:11:23.3512439Z *** For documentation, please visit   : https://www.alops.be/documentation
2022-05-09T19:11:23.3517408Z 
2022-05-09T19:11:23.7007001Z *** ALOps License:
2022-05-09T19:11:23.7068429Z   * Licensed To: <removed>
2022-05-09T19:11:23.7079101Z 
2022-05-09T19:11:23.9506706Z *** Importing required Task-Functions
2022-05-09T19:11:28.9303013Z 
2022-05-09T19:11:28.9688111Z *** Artifact Type   : [Sandbox]
2022-05-09T19:11:28.9708373Z *** Artifact Version: []
2022-05-09T19:11:28.9727933Z *** Artifact Country: [nl]
2022-05-09T19:11:28.9746944Z *** AL Source Path  : [base/app.json]
2022-05-09T19:11:28.9766079Z *** AL Cache Path   : [E:\Agent\_work\4\s]
2022-05-09T19:11:28.9780218Z 
2022-05-09T19:11:28.9829377Z 
2022-05-09T19:11:29.0144971Z *** Default Working Folder: E:\Agent\_work\4\s
2022-05-09T19:11:29.0171408Z *** Artifact Folder       : E:\Agent\_work\4\a
2022-05-09T19:11:29.0189631Z *** Agent Tool Folder     : E:\Agent\_work\_tool
2022-05-09T19:11:29.0207817Z *** Agent Temp Folder     : E:\Agent\_work\_temp
2022-05-09T19:11:29.0214646Z 
2022-05-09T19:11:29.0293349Z *** Resolving Path: [base/app.json]
2022-05-09T19:11:29.0349201Z *** Resolved Path : [E:\Agent\_work\4\s\base\app.json]
2022-05-09T19:11:29.0362844Z *** AL Source Folder      : E:\Agent\_work\4\s\base\app.json
2022-05-09T19:11:29.0373861Z *** Resolving Path: [E:\Agent\_work\4\s]
2022-05-09T19:11:29.0413594Z *** AL Cache Folder       : E:\Agent\_work\4\s
2022-05-09T19:11:29.0418275Z 
2022-05-09T19:11:29.0456778Z *** Check BcContainerHelper
2022-05-09T19:11:29.1447915Z *** Load BcContainerHelper
2022-05-09T19:11:29.3252052Z Setting bcartifactsCacheFolder = e:\BcContainerHelper\bcartifacts.cache
2022-05-09T19:11:29.7369348Z BcContainerHelper version 3.0.7
2022-05-09T19:11:29.7496180Z BcContainerHelper emits usage statistics telemetry to Microsoft
2022-05-09T19:11:35.0857602Z 
2022-05-09T19:11:35.0865870Z 
2022-05-09T19:11:35.0984927Z ##[command]"Get-BCArtifactUrl" 
2022-05-09T19:11:35.0985559Z Name                           Value                                                                                   
2022-05-09T19:11:35.0986159Z ----                           -----                                                                                   
2022-05-09T19:11:35.0986725Z sasToken                       ?sv=2020-08-04&ss=b&srt=sco&spr=https&st=2022-03-15T00%3A00%3A00Z&se=2022-10-01T00%3A...
2022-05-09T19:11:35.0987435Z select                         NextMajor                                                                               
2022-05-09T19:11:35.0987991Z type                           Sandbox                                                                                 
2022-05-09T19:11:35.0988508Z country                        nl                                                                                      
2022-05-09T19:11:35.0990173Z 
2022-05-09T19:11:35.0990273Z
2022-05-09T19:11:35.0991479Z  -sasToken: *** -select: NextMajor -type: Sandbox -country: nl
2022-05-09T19:11:48.5743907Z Downloading application artifact /sandbox/21.0.40371.0/nl
2022-05-09T19:11:48.6064988Z Downloading C:\Users\cmertens\AppData\Local\Temp\5b7505a6-965c-4d0d-88ec-ea6e3e2d5286.zip
2022-05-09T19:12:00.8702103Z Unpacking application artifact to tmp folder using Expand-Archive
2022-05-09T19:12:15.3483259Z Downloading platform artifact /sandbox/21.0.40371.0/platform
2022-05-09T19:12:15.3531081Z Downloading C:\Users\cmertens\AppData\Local\Temp\c117d1d4-2653-4473-8a26-f2ce3a9c0bf4.zip
2022-05-09T19:12:30.9240866Z Unpacking platform artifact to tmp folder using Expand-Archive
2022-05-09T19:17:21.8182621Z Downloading Prerequisite Components
2022-05-09T19:17:21.8469788Z Downloading e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
2022-05-09T19:17:22.3003716Z Downloading e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
2022-05-09T19:17:22.6360766Z Downloading e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
2022-05-09T19:17:25.7379200Z *** Platform: e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\platform
2022-05-09T19:17:25.7531642Z *** Localisation: e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\nl
2022-05-09T19:17:25.8131076Z *** BC Management DLL: E:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\platform\ServiceTier\program files\Microsoft Dynamics NAV\210\Service\Microsoft.Dynamics.Nav.Management.dll
2022-05-09T19:17:25.9204672Z *** BC App Management DLL: E:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\platform\ServiceTier\program files\Microsoft Dynamics NAV\210\Service\Microsoft.Dynamics.Nav.Apps.Management.dll
2022-05-09T19:17:25.9748748Z *** Specific App Manifest specified: [E:\Agent\_work\4\s\base\app.json]
2022-05-09T19:17:25.9796427Z *** Found [1] file.
2022-05-09T19:17:25.9807472Z *** Extract App detail from [E:\Agent\_work\4\s\base\app.json]
2022-05-09T19:17:26.0289661Z *** Starting Batch compile of Apps:
2022-05-09T19:17:26.0342227Z   * E:\Agent\_work\4\s\base
2022-05-09T19:17:26.0362301Z *** Start Compiling: [E:\Agent\_work\4\s\base]
2022-05-09T19:17:26.1171737Z *** Get App Information
2022-05-09T19:17:26.1216430Z *** Loading Json Object: [E:\Agent\_work\4\s\base\app.json]
2022-05-09T19:17:26.1258594Z   * Id         : <removed>
2022-05-09T19:17:26.1271779Z   * Publisher  : <removed>
2022-05-09T19:17:26.1284549Z   * Name       : <removed>
2022-05-09T19:17:26.1310943Z   * Description: <removed>
2022-05-09T19:17:26.1411511Z *** Check Runtime: [8.0]
2022-05-09T19:17:26.1501753Z *** Runtime: 8
2022-05-09T19:17:26.1828828Z *** Match: yyyyMMdd
2022-05-09T19:17:26.1892141Z *** Retaining original [Major] from version (?.0.0.0)
2022-05-09T19:17:26.1931574Z *** Retaining original [Minor] from version (0.?.0.0)
2022-05-09T19:17:26.1952960Z *** Setting Managed App Version [E:\Agent\_work\4\s\base\app.json] =>  22.4.20220509.6622
2022-05-09T19:17:26.2104842Z *** VSCode Settings: [E:\Agent\_work\4\s\base\.vscode\settings.json]
2022-05-09T19:17:26.2141813Z *** VSCode-Settings json found.
2022-05-09T19:17:26.2166801Z *** Loading Json Object: [E:\Agent\_work\4\s\base\.vscode\settings.json]
2022-05-09T19:17:26.2219385Z *** Get CodeAnalyzers from VSCode Settings
2022-05-09T19:17:26.2385173Z *** Set CodeAnalyzers: CodeCop,UICop,AppSourceCop
2022-05-09T19:17:26.2463030Z *** Using Ruleset: [E:\Agent\_work\4\s\.codeAnalysis\I-Suite.ruleset.json]
2022-05-09T19:17:26.2547154Z ##[command]"Get-BCArtifactUrl" 
2022-05-09T19:17:26.2547992Z Name                           Value                                                                                   
2022-05-09T19:17:26.2549606Z ----                           -----                                                                                   
2022-05-09T19:17:26.2550506Z sasToken                       ?sv=2020-08-04&ss=b&srt=sco&spr=https&st=2022-03-15T00%3A00%3A00Z&se=2022-10-01T00%3A...
2022-05-09T19:17:26.2551387Z select                         NextMajor                                                                               
2022-05-09T19:17:26.2552189Z type                           Sandbox                                                                                 
2022-05-09T19:17:26.2553004Z country                        nl                                                                                      
2022-05-09T19:17:26.2553417Z 
2022-05-09T19:17:26.2553579Z 
2022-05-09T19:17:26.2553752Z 
2022-05-09T19:17:38.4543582Z *** Platform: e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\platform
2022-05-09T19:17:38.4626011Z *** Localisation: e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\nl
2022-05-09T19:17:38.5117974Z *** VSIX Path: E:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\platform\ModernDev\program files\Microsoft Dynamics NAV\210\AL Development Environment\ALLanguage.vsix
2022-05-09T19:17:38.5268774Z   * Extracting VSIX to temporary path [e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\VSIX-Temp]
2022-05-09T19:19:14.7853941Z   * Rename temporary VSIX Path [e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\VSIX-Temp] => [e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\VSIX]
2022-05-09T19:19:14.7934744Z *** ALC Path: E:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\VSIX\extension\bin\alc.exe
2022-05-09T19:19:14.7964868Z *** Nav.CodeAnalysis Path: E:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40371.0\VSIX\extension\bin\Microsoft.Dynamics.Nav.CodeAnalysis.dll
2022-05-09T19:19:15.3949803Z ##[error]Kan bestand of assembly System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.
2022-05-09T19:19:15.4822827Z ##[section]Finishing: Compile base/app.json - nl NextMajor`
waldo1001 commented 2 years ago

I can't replicate it, but what I see is that i'm already on an higher build version:

*** Platform: c:\bcartifacts.cache\sandbox\21.0.40397.0\platform
*** Localisation: c:\bcartifacts.cache\sandbox\21.0.40397.0\nl
*** VSIX Path: C:\bcartifacts.cache\sandbox\21.0.40397.0\platform\ModernDev\program files\Microsoft Dynamics NAV\210\AL Development Environment\ALLanguage.vsix
*** ALC Path: C:\bcartifacts.cache\sandbox\21.0.40397.0\VSIX\extension\bin\alc.exe
*** Nav.CodeAnalysis Path: C:\bcartifacts.cache\sandbox\21.0.40397.0\VSIX\extension\bin\Microsoft.Dynamics.Nav.CodeAnalysis.dll
*** Get Localised Apps [125]
*** Get Platform Apps [120]
DanielGoehler commented 2 years ago

@waldo1001:

*** Platform: c:\bcartifacts.cache\sandbox\21.0.40397.0\platform
*** Localisation: c:\bcartifacts.cache\sandbox\21.0.40397.0\nl
*** VSIX Path: C:\bcartifacts.cache\sandbox\21.0.40397.0\platform\ModernDev\program files\Microsoft Dynamics NAV\210\AL Development Environment\ALLanguage.vsix
  * Extracting VSIX to temporary path [c:\bcartifacts.cache\sandbox\21.0.40397.0\VSIX-Temp]
  * Rename temporary VSIX Path [c:\bcartifacts.cache\sandbox\21.0.40397.0\VSIX-Temp] => [c:\bcartifacts.cache\sandbox\21.0.40397.0\VSIX]
*** ALC Path: C:\bcartifacts.cache\sandbox\21.0.40397.0\VSIX\extension\bin\alc.exe
*** Nav.CodeAnalysis Path: C:\bcartifacts.cache\sandbox\21.0.40397.0\VSIX\extension\bin\Microsoft.Dynamics.Nav.CodeAnalysis.dll
##[error]Die Datei oder Assembly "System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
CarloAxians commented 2 years ago

Same here:


*** Platform: e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40397.0\platform
*** Localisation: e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40397.0\nl
*** VSIX Path: E:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40397.0\platform\ModernDev\program files\Microsoft Dynamics NAV\210\AL Development Environment\ALLanguage.vsix
  * Extracting VSIX to temporary path [e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40397.0\VSIX-Temp]
  * Rename temporary VSIX Path [e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40397.0\VSIX-Temp] => [e:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40397.0\VSIX]
*** ALC Path: E:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40397.0\VSIX\extension\bin\alc.exe
*** Nav.CodeAnalysis Path: E:\BcContainerHelper\bcartifacts.cache\sandbox\21.0.40397.0\VSIX\extension\bin\Microsoft.Dynamics.Nav.CodeAnalysis.dll
##[error]Kan bestand of assembly System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.
waldo1001 commented 2 years ago

Most probably it's because of .Net install on your server (since it's a .Net library that it's complaining about).

Can you try with install the latest .Net version on your machines, or update your current version?

Do know, whatever you install regarding .net - it does take a while when the new library gets active (after a couple of reboots): it runs some kind of ".net optimalization" that you need to wait for.. .

MortenRa commented 2 years ago

We are also experiencing this issue for all Major pipelines check.

waldo1001 commented 2 years ago

I understand you all have this issue .. but I also hope you understand that things like this we can't foresee, and need to find out why that is happening.

What is bothering me is that I don't have this issue at all. That's why I'm thinking it's outside of ALOps, pure .Net related. That's why I'm suggesting to look into that.

Can you give me which versions you have installed? https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed

MortenRa commented 2 years ago

@waldo1001

Running 4.8

and last time our server was updated was 13/04/2022

=4.x : 4.8 or later

DanielGoehler commented 2 years ago
Get-STDotNetVersion -ComputerName pi-bcbuild1, pi-bcbuild2, pi-bcbuild3, pi-bcbuild4, pi-bccompiler1, pi-bccompiler2, pi-bccompiler3, pi-bccompiler4 -PSRemoting

ComputerName : pi-bcbuild1
>=4.x        : 4.8 or later
v4\Client    : Installed
v4\Full      : Installed
v3.5         : Not installed (no key)
v3.0         : Not installed (no key)
v2.0.50727   : Not installed (no key)
v1.1.4322    : Not installed (no key)
Ping         : True
Error        :

ComputerName : pi-bcbuild2
>=4.x        : 4.8 or later
v4\Client    : Installed
v4\Full      : Installed
v3.5         : Not installed (no key)
v3.0         : Not installed (no key)
v2.0.50727   : Not installed (no key)
v1.1.4322    : Not installed (no key)
Ping         : True
Error        :

ComputerName : pi-bcbuild3
>=4.x        : 4.8 or later
v4\Client    : Installed
v4\Full      : Installed
v3.5         : Not installed (no key)
v3.0         : Not installed (no key)
v2.0.50727   : Not installed (no key)
v1.1.4322    : Not installed (no key)
Ping         : True
Error        :

ComputerName : pi-bcbuild4
>=4.x        : 4.8 or later
v4\Client    : Installed
v4\Full      : Installed
v3.5         : Not installed (no key)
v3.0         : Not installed (no key)
v2.0.50727   : Not installed (no key)
v1.1.4322    : Not installed (no key)
Ping         : True
Error        :

ComputerName : pi-bccompiler1
>=4.x        : 4.8 or later
v4\Client    : Installed
v4\Full      : Installed
v3.5         : Not installed (no key)
v3.0         : Not installed (no key)
v2.0.50727   : Not installed (no key)
v1.1.4322    : Not installed (no key)
Ping         : True
Error        :

ComputerName : pi-bccompiler2
>=4.x        : 4.8 or later
v4\Client    : Installed
v4\Full      : Installed
v3.5         : Not installed (no key)
v3.0         : Not installed (no key)
v2.0.50727   : Not installed (no key)
v1.1.4322    : Not installed (no key)
Ping         : True
Error        :

ComputerName : pi-bccompiler3
>=4.x        : 4.8 or later
v4\Client    : Installed
v4\Full      : Installed
v3.5         : Not installed (no key)
v3.0         : Not installed (no key)
v2.0.50727   : Not installed (no key)
v1.1.4322    : Not installed (no key)
Ping         : True
Error        :

ComputerName : pi-bccompiler4
>=4.x        : 4.8 or later
v4\Client    : Installed
v4\Full      : Installed
v3.5         : Not installed (no key)
v3.0         : Not installed (no key)
v2.0.50727   : Not installed (no key)
v1.1.4322    : Not installed (no key)
Ping         : True
Error        :

    Script start time: 05/10/2022 15:50:41
    Script end time:   05/10/2022 15:50:47

Also completely patch around last Microsoft patch day (~13/04/2022)

waldo1001 commented 2 years ago

Good news - I was able to repro it .. So let's see if we can find a solution now .. ;-)

waldo1001 commented 2 years ago

Update - we found a solution, and we think we can solve it on ALOps-level, so that nobody has to fumble around with their buildservers... 👍. Give us some time to build a solution in ALOps..

TheDoubleH commented 2 years ago

Just a comment that the same issue is happening on

https://github.com/TheDoubleH/BCVoidPayment and https://github.com/TheDoubleH/BCALToolbox

Using Matrix in the yaml:

name: $(Date:yyyyMMdd)$(Rev:.r)

trigger:
 branches:
   include:
     - master

strategy:
  matrix:
    'Compile Against W1 - Current Version':
      artifactCountry: 'w1'
      artifactVersion: 'Current'
    'Compile Against W1 - Next Minor':
      artifactCountry: 'w1'
      artifactVersion: 'NextMinor'
    'Compile Against W1 - Next Major':
      artifactCountry: 'w1'
      artifactVersion: 'NextMajor'
    'Compile Against United States - Current Version':
      artifactCountry: 'us'
      artifactVersion: 'Current'
    'Compile Against United States - Next Minor':
      artifactCountry: 'us'
      artifactVersion: 'NextMinor'
    'Compile Against United States - Next Major':
      artifactCountry: 'us'
      artifactVersion: 'NextMajor'

pool: Helgesen Build

variables:
- group: Secrets

schedules:
- cron: '0 0 * * *'
  displayName: Daily Midnight ALOps Compile against Current, Next Minor, and Next Major
  branches:
    include:
    - master
  always: true

steps:
- checkout: self
  clean: true 

# This compiler (v2) is not going to use a docker container, but it's going to use the artifacts that you specify in the parameters
# The compiler will "Batch Compile", meaning: it will compile everything in the workingfolder

- task: ALOpsAppCompiler@2
  displayName: 'Compile $(Build.Repository.Name)'
  inputs:  
    artifacttype: 'Sandbox'
    artifactcountry: '$(artifactCountry)'
    versionselect: '$(artifactVersion)'
    appversiontemplate: '?.?.*.0'
    alcodeanalyzer: UICop,CodeCop,PerTenantExtensionCop
    failonwarnings: true
    publishartifact: false
    sastoken: $(bc.sastoken)
waldo1001 commented 2 years ago

Release to be expected this week..

AdminHodor commented 2 years ago

v1.449: ALOpsAppCompiler@2: Improved Assembly resolve, fixes the missing "System.Collections.Immutable" reference

DanielGoehler commented 2 years ago

Works fine. Thanks.