HodorNV / ALOps

ALOps
59 stars 24 forks source link

ALOpsAppCompiler@2 - Cannot find an overload for "GetObjectsForNativeVariants" #223

Closed fvet closed 4 years ago

fvet commented 4 years ago

Describe the bug While testing ALOpsAppCompiler@2, I got this warning

Dotnet Framework probably missing. Please install latest Dotnet framework.

So I have installed .NET framework 4.8 on the buildserver, and now I'm getting

##[error]Cannot find an overload for "GetObjectsForNativeVariants" and the argument count: "1".

the used yaml

steps:
- task: ALOpsAppCompiler@2
  displayName: 'Compile ${{ parameters.app_name }}'
  enabled: ${{ parameters.enabled }}
  inputs:
    artifactversion: $(currentBuild)
    artifacttype: 'OnPrem' # 'Sandbox' ?
    artifactcountry: $(country)
    appversiontemplate: '?.?.?.*'
    alcodeanalyzer: ${{ parameters.al_analyzer }}
    failonwarnings: ${{ parameters.failed_on_warnings }}
    # app_file_suffix: ${{ parameters.file_suffix }}

the output

Starting: Compile Navitrans.Core
==============================================================================
Task         : ALOps App Compiler
Description  : Compile AL Extension(s) for Business Central
Version      : 2.0.1864
Author       : Hodor
Help         : Compile Business Central extension(s) from AL code.
==============================================================================
******************************************************************************
*** ALOps v2 - Preview                                                     ***
******************************************************************************
*** Importing required ALOps-Functions
##[error]Cannot find an overload for "GetObjectsForNativeVariants" and the argument count: "1".
Finishing: Compile Navitrans.Core
fvet commented 4 years ago

Had to reboot the machine, so maybe a conflicting update / kb got installed?

image

fvet commented 4 years ago

Uninstalled KB4486153 but now I get the original error again...

*** Start ALC.EXE / Compile AL Extension
& alc.exe /packagecachepath:"C:\DockerInstallation\Agent\_work\4\s\App\.ALOPSCache" /project:"C:\DockerInstallation\Agent\_work\4\s\App" /out:"C:\DockerInstallation\Agent\_work\4\a\Navitrans_Core_16.3.0.4923_OnPrem_16.3_w1.app" /fullpaths /assemblyprobingpaths:C:\Windows\assembly,C:\bcartifacts.cache\onprem\16.3.14085.14238\platform\Test Assemblies\Mock Assemblies,C:\bcartifacts.cache\onprem\16.3.14085.14238\platform\LegacyDlls\program files\Microsoft Dynamics NAV\160\RoleTailored Client\Add-ins,C:\bcartifacts.cache\onprem\16.3.14085.14238\platform\ServiceTier\program files\Microsoft Dynamics NAV\160\Service\Add-ins /analyzer:"C:\bcartifacts.cache\onprem\16.3.14085.14238\platform\ModernDev\program files\Microsoft Dynamics NAV\160\AL Development Environment\ALLanguage\extension\bin\Analyzers\Microsoft.Dynamics.Nav.CodeCop.dll","C:\bcartifacts.cache\onprem\16.3.14085.14238\platform\ModernDev\program files\Microsoft Dynamics NAV\160\AL Development Environment\ALLanguage\extension\bin\Analyzers\Microsoft.Dynamics.Nav.UICop.dll","C:\bcartifacts.cache\onprem\16.3.14085.14238\platform\ModernDev\program files\Microsoft Dynamics NAV\160\AL Development Environment\ALLanguage\extension\bin\Analyzers\Microsoft.Dynamics.Nav.AppSourceCop.dll" /ruleset:"C:\DockerInstallation\Agent\_work\4\s\App\.vscode\nvt.ruleset.json"
*** AL Compiler Exit Code: -2146232576
##[error]Dotnet Framework probably missing. Please install latest Dotnet framework.
##[error]Executing ALC.EXE failed with code [-2146232576]
fvet commented 4 years ago

Downloaded the runtime, instead of the developer pack ... Retrying ... Fixed.