{"title":"AppSourceCop Error AS0097","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0097/","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-as0097, 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-as0097","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 publisher name of an extension cannot be changed for extensions targeting a runtime version lower than '8.0' in their app.json file.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"AppSourceCop Error AS0097","slug":"appsourcecop-error-as0097","at":0,"chars":2232},{"level":2,"title":"Description","slug":"description","at":82,"chars":232},{"level":2,"title":"Remarks","slug":"remarks","at":314,"chars":333},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":647,"chars":242},{"level":2,"title":"Code example triggering the rule","slug":"code-example-triggering-the-rule","at":889,"chars":561},{"level":2,"title":"Code example not triggering the rule","slug":"code-example-not-triggering-the-rule","at":1450,"chars":575},{"level":2,"title":"Related information","slug":"related-information","at":2025,"chars":207}],"text":"# AppSourceCop Error AS0097\nThe publisher name of an extension cannot be changed.\n## Description\nThe publisher name of an extension cannot be changed for extensions targeting a runtime version lower than '8.0' in their app.json file. This will break the upgrade of existing installations and dependent extensions.\n## Remarks\nChanging the identity of extensions is only supported in Business Central starting from version 2021 release wave 2 which corresponds to the AL runtime version 8.0, see ../devenv-json-files#appjson-file. Learn more about what makes up the identity of an app in Understand app identity for AL apps<../devenv-app-identity>.\n## How to fix this diagnostic?\nTo fix this diagnostic, you must either:\n change the publisher of the extension in the app.json to match the publisher name used in the baseline,\n update the runtime version in the app.json to be 8.0 or higher.\n## Code example triggering the rule\nVersion 1.0 of the extension:\n```json\n{\n    \"name\": \"Extension Name\",\n    \"publisher\": \"Publisher Name\",\n    \"version\": \"1.0.0.0\",\n    \"runtime\": \"7.2\",\n    // other properties\n}\n```\nVersion 2.0 of the extension:\n```json\n{\n    \"name\": \"Extension Name\",\n    \"publisher\": \"New Publisher Name\",\n    \"version\": \"2.0.0.0\",\n    \"runtime\": \"7.2\",\n    // other properties\n}\n```\nIn version 2.0, the publisher has been renamed from `Publisher Name` to `New Publisher Name` while still targeting runtime 7.2. The rename is not allowed.\n## Code example not triggering the rule\nVersion 1.0 of the extension:\n```json\n{\n    \"name\": \"Extension Name\",\n    \"publisher\": \"Publisher Name\",\n    \"version\": \"1.0.0.0\",\n    \"runtime\": \"7.2\",\n    // other properties\n}\n```\nVersion 2.0 of the extension:\n```json\n{\n    \"name\": \"Extension Name\",\n    \"publisher\": \"New Publisher Name\",\n    \"version\": \"2.0.0.0\",\n    \"runtime\": \"8.0\",\n    // other properties\n}\n```\nIn version 2.0, the publisher has been renamed from `Publisher Name` to `New Publisher Name` and the runtime version has been changed to 8.0. The rename is allowed.\n## Related information\nAppSourceCop Analyzer<appsourcecop>\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>\nUnderstand app identity for AL apps<../devenv-app-identity>"}