最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

microsoft dynamics - How to force a symbol version in Business Central? - Stack Overflow

programmeradmin2浏览0评论

I'm trying to develop in my sandbox environment, which is at this versions:

Version: ES Business Central 25.3 (Platform 25.2.29913.0 + Application 25.3.28755.30175)

This is my app.json:

{
  "id": "97a3ace3-8ba8-4732-af0c-22e1fc6091f8",
  "name": "Tracking Central",
  "publisher": "ProgramadorBC.es",
  "version": "1.0.0.0",
  "brief": "",
  "description": "Tracking Central es una aplicación que permite a los usuarios realizar un seguimiento de los envíos de sus paquetes.",
  "privacyStatement": "",
  "EULA": "",
  "help": "",
  "url": ";,
  "logo": "./Logo/programadorbc.png",
  "dependencies": [
    {
      "id": "63ca2fa4-4f03-4f2b-a480-172fef340d3f",
      "name": "System Application",
      "publisher": "Microsoft",
      "version": "25.3.28755.29171"
    },
    {
      "id": "f3552374-a1f2-4356-848e-196002525837",
      "name": "Business Foundation",
      "publisher": "Microsoft",
      "version": "25.3.28755.29171"
    },
    {
      "id": "437dbf0e-84ff-417a-965d-ed2bb9650972",
      "name": "Base Application",
      "publisher": "Microsoft",
      "version": "25.3.28755.29242"
    }
  ],
  "screenshots": [],
  "platform": "25.2.0.0",
  "application": "25.3.0.0",
  "idRanges": [
    {
      "from": 53200,
      "to": 53249
    }
  ],
  "resourceExposurePolicy": {
    "allowDebugging": true,
    "allowDownloadingSource": false,
    "includeSourceInSymbolFile": false
  },
  "runtime": "14.0",
  "features": ["NoImplicitWith"]
}

When I download symbols I see it's downloading a 25.4 app which is not correct:

This is the version I have installed in my environment:

When I try to compile, it's obviously not working:

Compilation started for project 'Tracking Central' containing '1' files at '10:50:40.512'.

error AL1022: A package with publisher 'Microsoft', name 'System Application', and a version compatible with '25.4.0.0' could not be found in the package cache folders: c:\Users\Adrian\Desktop\OneDrive - programadorbc.es\AA - ProgramadorBC\Tracking Central\.alpackages
error AL1022: A package with publisher 'Microsoft', name 'Base Application', and a version compatible with '25.4.0.0' could not be found in the package cache folders: c:\Users\Adrian\Desktop\OneDrive - programadorbc.es\AA - ProgramadorBC\Tracking Central\.alpackages
error AL1022: A package with publisher 'Microsoft', name 'Business Foundation', and a version compatible with '25.4.0.0' could not be found in the package cache folders: c:\Users\Adrian\Desktop\OneDrive - programadorbc.es\AA - ProgramadorBC\Tracking Central\.alpackages

Compilation ended at '10:50:40.532'.

Error: The package could not be created.

For some reason it's still pointing to 25.4, this is what I've been trying:

  1. Remove .alpackages and .snapshots folders
  2. Clear credentials cache
  3. Reload developer window (reload VSCODE)
  4. Adding Base Application, Business Foundation, System Application to dependencies as it was looking for the 25.4 version and not finding them

How can I force to use the correct version or how to unlock this situation?

I'm trying to develop in my sandbox environment, which is at this versions:

Version: ES Business Central 25.3 (Platform 25.2.29913.0 + Application 25.3.28755.30175)

This is my app.json:

{
  "id": "97a3ace3-8ba8-4732-af0c-22e1fc6091f8",
  "name": "Tracking Central",
  "publisher": "ProgramadorBC.es",
  "version": "1.0.0.0",
  "brief": "",
  "description": "Tracking Central es una aplicación que permite a los usuarios realizar un seguimiento de los envíos de sus paquetes.",
  "privacyStatement": "",
  "EULA": "",
  "help": "",
  "url": "https://programadorbc.es",
  "logo": "./Logo/programadorbc.png",
  "dependencies": [
    {
      "id": "63ca2fa4-4f03-4f2b-a480-172fef340d3f",
      "name": "System Application",
      "publisher": "Microsoft",
      "version": "25.3.28755.29171"
    },
    {
      "id": "f3552374-a1f2-4356-848e-196002525837",
      "name": "Business Foundation",
      "publisher": "Microsoft",
      "version": "25.3.28755.29171"
    },
    {
      "id": "437dbf0e-84ff-417a-965d-ed2bb9650972",
      "name": "Base Application",
      "publisher": "Microsoft",
      "version": "25.3.28755.29242"
    }
  ],
  "screenshots": [],
  "platform": "25.2.0.0",
  "application": "25.3.0.0",
  "idRanges": [
    {
      "from": 53200,
      "to": 53249
    }
  ],
  "resourceExposurePolicy": {
    "allowDebugging": true,
    "allowDownloadingSource": false,
    "includeSourceInSymbolFile": false
  },
  "runtime": "14.0",
  "features": ["NoImplicitWith"]
}

When I download symbols I see it's downloading a 25.4 app which is not correct:

This is the version I have installed in my environment:

When I try to compile, it's obviously not working:

Compilation started for project 'Tracking Central' containing '1' files at '10:50:40.512'.

error AL1022: A package with publisher 'Microsoft', name 'System Application', and a version compatible with '25.4.0.0' could not be found in the package cache folders: c:\Users\Adrian\Desktop\OneDrive - programadorbc.es\AA - ProgramadorBC\Tracking Central\.alpackages
error AL1022: A package with publisher 'Microsoft', name 'Base Application', and a version compatible with '25.4.0.0' could not be found in the package cache folders: c:\Users\Adrian\Desktop\OneDrive - programadorbc.es\AA - ProgramadorBC\Tracking Central\.alpackages
error AL1022: A package with publisher 'Microsoft', name 'Business Foundation', and a version compatible with '25.4.0.0' could not be found in the package cache folders: c:\Users\Adrian\Desktop\OneDrive - programadorbc.es\AA - ProgramadorBC\Tracking Central\.alpackages

Compilation ended at '10:50:40.532'.

Error: The package could not be created.

For some reason it's still pointing to 25.4, this is what I've been trying:

  1. Remove .alpackages and .snapshots folders
  2. Clear credentials cache
  3. Reload developer window (reload VSCODE)
  4. Adding Base Application, Business Foundation, System Application to dependencies as it was looking for the 25.4 version and not finding them

How can I force to use the correct version or how to unlock this situation?

Share Improve this question edited Feb 23 at 10:03 kuhi asked Feb 23 at 9:53 kuhikuhi 71110 silver badges31 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

It might be bugged in an update process by Microsoft, creating a new environment pointing to the newest version allows me coding again:

发布评论

评论列表(0)

  1. 暂无评论