{"title":"AppSourceCop Warning AS0085","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0085/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/appsourcecop-as0085, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/appsourcecop-as0085","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"The 'application' property should be used for expressing a dependency on the 'Base Application' or the 'System Application' instead of explicit dependencies.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"AppSourceCop Warning AS0085","slug":"appsourcecop-warning-as0085","at":0,"chars":1820},{"level":2,"title":"Description","slug":"description","at":106,"chars":310},{"level":2,"title":"Remarks","slug":"remarks","at":416,"chars":407},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":823,"chars":243},{"level":2,"title":"Code example triggering the rule","slug":"code-example-triggering-the-rule","at":1066,"chars":470},{"level":2,"title":"Code example not triggering the rule","slug":"code-example-not-triggering-the-rule","at":1536,"chars":137},{"level":2,"title":"Related information","slug":"related-information","at":1673,"chars":147}],"text":"# AppSourceCop Warning AS0085\nUse the 'application' property instead of specifying explicit dependencies.\n## Description\nThe 'application' property should be used for expressing a dependency on the 'Base Application' or the 'System Application' instead of explicit dependencies. See https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-application-app-file for additional information.\n## Remarks\nThis rule reports a diagnostic when the app.json of the extension specifies a dependency on the 'Base Application' or 'System Application' extensions by Microsoft.\nFor more information about the benefits of using the application property, see The Microsoft_Application.app file<../devenv-application-app-file>.\nFor more information about the properties in the app.json, see ../devenv-json-files.\n## How to fix this diagnostic?\nTo fix this diagnostic, you have to replace the dependencies specifed on the 'Base Application' and 'System Application' in the dependencies property by the application property in the app.json of the extension.\n## Code example triggering the rule\nThe app.json file of the extension:\n```json\n{\n  [...]\n  \"dependencies\": [\n    {\n      \"appId\":  \"437dbf0e-84ff-417a-965d-ed2bb9650972\",\n      \"name\":  \"Base Application\",\n      \"publisher\":  \"Microsoft\",\n      \"version\":  \"15.3.0.0\"\n    },\n    {\n        \"appId\":  \"63ca2fa4-4f03-4f2b-a480-172fef340d3f\",\n        \"name\":  \"System Application\",\n        \"publisher\":  \"Microsoft\",\n        \"version\":  \"15.3.0.0\"\n    }\n  ],\n  [...]\n}\n```\n## Code example not triggering the rule\nThe app.json file of the extension:\n```json\n{\n  [...]\n  \"application\": \"17.0.0.0\",\n  [...]\n}\n```\n## Related information\nAppSourceCop Analyzer<appsourcecop>\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}