Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule0033AppManifestRuntimeBehind - 'System.MissingMethodException' #590

Closed
pri-kise opened this issue Apr 11, 2024 · 3 comments
Closed

Rule0033AppManifestRuntimeBehind - 'System.MissingMethodException' #590

pri-kise opened this issue Apr 11, 2024 · 3 comments

Comments

@pri-kise
Copy link

pri-kise commented Apr 11, 2024

We receive the following warning in our Azure DevOps pipeline.

##[warning]warning AD0001: Analyzer 'BusinessCentral.LinterCop.Design.Rule0033AppManifestRuntimeBehind' threw an exception of type 'System.MissingMethodException' with message 'System.MissingMethodException: Method not found: 'Microsoft.Dynamics.Nav.CodeAnalysis.Packaging.NavAppManifest Microsoft.Dynamics.Nav.Analyzers.Common.ManifestHelper.GetManifest(Microsoft.Dynamics.Nav.CodeAnalysis.Compilation)'.

##[warning]at BusinessCentral.LinterCop.Design.Rule0033AppManifestRuntimeBehind.CheckAppManifestRuntime(CompilationAnalysisContext ctx)
##[warning]at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass48_1.<ExecuteCompilationActionsCore>b__0() in X:\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 618
##[warning]at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock(DiagnosticAnalyzer analyzer, Action analyze, Nullable`1 info) in X:\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 1086'

We only have on PageExtension in this app, because this is our template app.

pageextension 50000 "PTE CustomerListExt" extends "Customer List"
{
    trigger OnOpenPage();
    begin
        //Message('App published: Hello world');
    end;
}

Versions:

  • Microsoft (R) AL Compiler version 12.7.14.63589
  • Application Version: 23.5
@Arthurvdv
Copy link
Collaborator

Unfortunately the LinterCop is only compatible with the latest AL Languague version, currently v13.0.971907.

There was a breaking change between v12 and v13 of the AL Lanuage which is releated to the error exception you're experiencing right now.

If you are using Run-ALPipeline in your build pipelines you should also load the latest compiler from the marketplace. Add -vsixFile (Get-LatestAlLanguageExtensionUrl) to do so.

@pri-kise
Copy link
Author

pri-kise commented Apr 12, 2024

Okay .
Good to know I haven't thought of something like that.

I will try to use the Latest Version of the AL Language.

Adding this AL Language Issue for Reference: microsoft/AL#7569

@pri-kise
Copy link
Author

I've tested it with the Latest AL Language version.
Now it's working fine.
I will have to update our pipelines now, but at least it's working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants