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

[Question]: Error when running Test Next Major action #1213

Open
fvet opened this issue Sep 19, 2024 · 6 comments
Open

[Question]: Error when running Test Next Major action #1213

fvet opened this issue Sep 19, 2024 · 6 comments
Labels
question Further information is requested

Comments

@fvet
Copy link

fvet commented Sep 19, 2024

Question

We have the following setup:

One repo, with multiple projects / apps, most having dependencies on each other (minimum against Core)

image

Core app has an additional dependency against a 3rd party app, which is included in the repo under Core project, .appSourceCopPackages folder.

image

Core app manifest file:

{
  "id": "c1fa90da-fc3f-4720-abd8-1b30fe8f3faf",         
  "name": "ESC Core",
  "publisher": "ESC bvba",
  "version": "24.0.0.0",
  "brief": "ESC Core Module",
  "description": "ESC Core module",
  "privacyStatement": "https://www.esc.be/en/privacy-policy",
  "EULA": "https://www.esc.be/en/terms-and-conditions",
  "help": "https://esc.be/support/",
  "url": "http://www.esc.be",
  "logo": "ESC.png",
  "screenshots": [],
  "platform": "24.0.0.0", // <<<
  "application": "24.0.0.0",  // <<<
  "idRanges": [
    {
      "from": 71791569,
      "to": 71791574
    }
  ],  
  "dependencies": [
    {
      "id": "dbe4cf4c-5910-4ad1-beee-394010c59802",
      "name": "Dynavision Core",
      "publisher": "Dynavision",
      "version": "23.0.14.0"
    }
  ],
  "contextSensitiveHelpUrl": "https://esc.be/",
  "runtime": "13.0",  // <<<
  "target": "Cloud",

All actions run well / compile properly against BC24.
We would like to be informed about possible AppSource validation errors, by periodically running the 'Text Next Major' action on the main branch.

When running the 'Text Next Major' action for the entire repo, the action fails with errors:

Error: AL1153 The referenced module 'System by Microsoft (25.0.24293.0)' with runtime reference version '14.0' cannot be loaded by the compiler with version '13.0'.
Error: AL1153 The referenced module 'System Application by Microsoft (25.0.23364.24332)' with runtime reference version '14.0' cannot be loaded by the compiler with version '13.0'.
Error: AL1153 The referenced module 'Business Foundation by Microsoft (25.0.23364.24332)' with runtime reference version '14.0' cannot be loaded by the compiler with version '13.0'.
Error: AL1153 The referenced module 'Base Application by Microsoft (25.0.23364.24332)' with runtime reference version '14.0' cannot be loaded by the compiler with version '13.0'.
Error: AL1153 The referenced module 'Application by Microsoft (25.0.23364.24332)' with runtime reference version '14.0' cannot be loaded by the compiler with version '13.0'.

logs_28540920193.zip

Side note: As mentioned on Yammer (https://www.yammer.com/dynamicsnavdev/#/threads/show?threadId=2959605473320960), our devs are focusing on the maintaining the main branch only (no plans to increase the application version to 25.0 within the next 5 months), how can they be alerted of these 25.0 validation errors upfront when working on a branch that has minimum dependency set to 24.0? (while avoiding the hassle of maintaining separate 'nextmajor' branches or uptaking preprocessorsymbols). Their reality is still 24.0.
...
we're not looking to implement the 'hotfix' process (https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-hotfixing-appsource-app) , as we won't release any Application 25.0 version soon.

@fvet fvet added the question Further information is requested label Sep 19, 2024
@frottke
Copy link

frottke commented Sep 24, 2024

We are getting the same error, were you able to find the source of the problem?

@fvet
Copy link
Author

fvet commented Sep 24, 2024

@frottke We haven't done any further investigation, awaiting feedback from MS on how to manage / configure.

@waldo1001
Copy link

Judging from the error - did you try to use the Prerelease-compiler?

@fvet
Copy link
Author

fvet commented Sep 26, 2024

I'm not aware of an AL:GO setting for using the Prerelease-compiler? Couldn't find any proper guidelines on how to achieve this in the Usage Scenarios / Workshop / Settings documentation...

@freddydk
Copy link
Contributor

The problem here is the missing partner runtime package.
When running Test Next Major - it automatically uses the compiler from the Next Major artifacts.
I will do some investigations and get back in a few days

@frottke
Copy link

frottke commented Sep 26, 2024

The problem here is the missing partner runtime package. When running Test Next Major - it automatically uses the compiler from the Next Major artifacts. I will do some investigations and get back in a few days

I'm not exactly sure what you mean with missing partner runtime packages. We have in our case no dependencies to other apps except the Microsoft Application.

the error also appears when using localdevenv.ps1 (might be easier to debug? :) )

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

No branches or pull requests

4 participants