Development environment
Development environment for Business Central AL development: configuring VS Code, projects and workspaces, compiling, publishing, debugging, testing, sandboxes, app manifests and helper tools. It answers setup, configuration, build, test and troubleshooting questions for AL developers.
Path: Development > Development environment · tier official · system administration · narrative unreviewed (model text not yet checked)
Overview
This section covers everything needed to set up and work in an AL development environment for Business Central. It starts with configuring the VS Code AL Language extension, including performance tuning, container and GitHub Codespaces setups, runtime targeting and resource exposure policy. It then covers projects and workspaces, such as multi-root workspaces, per-folder settings and project references in app.json.
The remaining subtopics follow the development cycle. They cover code analysis, compiling, publishing and debugging (including profiling and app signing), automated testing, and working in online or container sandboxes. Working with apps explains app.json identity, runtime version, packaging resources and dependency apps. Other tools covers Page Inspection, Txt2Al and the table data viewer.
A good starting point is Configure the development environment, then Work in sandboxes to get a running environment. After that, move to Compile, publish, and debug and Testing as you build extensions.
Key points
- Configure the development environment covers AL Language extension settings, performance tuning, container and GitHub Codespaces setups, runtime targeting and resource exposure policy.
- Projects and workspaces: multi-root workspaces, per-folder settings, and project references in app.json, including symbol resolution and recovery from publishing failures.
- Compile, publish, and debug covers breakpoints, attach and snapshot debugging, the AL Profiler, compilation scope, app signing, Entra authentication on-premises and RAD publishing.
- Testing covers AL test codeunits, test methods, handlers, test pages and test runners, running tests in VS Code, mocking HttpClient calls, performance testing and page scripting.
- Sandboxes: online and container sandboxes differ; container environments use Docker and BCContainerHelper; extensions can be tested under different user plans and entitlements.
- Working with apps covers app identity in app.json, runtime version choice, packaging resources, data to install, and library and dependency apps.
- Other tools: Page Inspection for page structure and data sources, Txt2Al for converting C/AL objects to AL (such as NAV 14 code), and the table data viewer for tenant tables.
- A Code analysis subtopic with 9 pages is also part of this section.
Subtopics
- Configure the development environment (10 pages)
- Configure projects and workspaces (2 pages)
- Code analysis (9 pages)
- Compile, publish, and debug (12 pages)
- Testing (11 pages)
- Work in sandboxes (3 pages)
- Working with apps (5 pages)
- Other tools (3 pages)
Videos, posts and code changes
Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.
- #10212 Add SetReferenceType method to SignedXml and SignedXmlImpl (#10139) (code change): “SetReferenceType method is added to the SignedXml codeunit to allow callers”
- #6857 [BC Idea][TableInformation] : Enhance Indexes List Part with SIFT details, visual indicators, and improved index management #6856 (code change): “Indexes List Part page gains SIFT details, visual indicators, and improved index management”
- Be careful with Visual Studio Code extensions… (community post): “Be careful with Visual Studio Code extensions”
- Business Central on Linux? Here, hold my beer! (community post): “Running Business Central on Linux via Wine required implementing missing Windows APIs”
- AL Object ID Ninja 3.2.1: A Lot Has Happened in Four Days (community post): “App pools now display accurate pool-wide consumption in Range Explorer and Assignment Explorer”
- How to connect to Dynamics 365 Business Central On-Premises in VS Code (Use the On-Premises version for customization) (community post): “configure VS Code to connect to a Business Central On-Premises environment for AL development”
- Business Central 2026 release wave 2 (BC29): Retained DEV extensions (DEV extensions remain installed during environment update) (community post): “DEV extensions published from VS Code or created with Designer”
Business Central pages and reports
The pages, reports and queries this hub’s Learn pages name (ms.search.form, API reference), joined to the code by exact object id (data/index/docs-objects.json); a page shows the table it runs on.
Learn also names 9 objects with no object page: page/149000, page/149001, page/149003, page/149004, page/149005, page/149006, page/149007, page/149008, page/149009.
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 8 of 54 Learn pages
- learnAdding and Accessing Resources in Business Central extensions2026-08-25
- learnAdding data for Extensions2021-04-01
- learnAL Code Analysis Performance Configuration2026-10-21
- learnAL diagnostics2026-10-01
- learnAL Language extension configuration2026-08-25
- learnAnalyze AL Performance with the AL Profiler2026-10-07
- learnApplication Testing Example to Test Purchase Invoice Discounts2026-08-24
- learnAppSourceCop analyzer2026-10-01
Show 32 more
- learnAttach and Debug Next in Business Central2026-10-15
- learnBusiness Central App Testing FAQ2026-11-27
- learnChoose an AL Runtime Version for Business Central2026-10-16
- learnCodeCop analyzer2026-10-01
- learnCompilation scope overview2025-05-18
- learnCreate Handler Methods for Automated Tests2026-08-24
- learnCreate Test Runner Codeunits in AL2026-08-24
- learnDebug AL Code in Visual Studio Code2026-10-07
- learnDebug Upgrade and Install Code in AL2026-10-07
- learnDevelop for multiple platform versions2024-03-15
- learnDirectory.app.props.json file2025-09-26
- learnFAQ about Library & Dependency Apps in Business Central2026-11-27
- learnInspecting pages2026-09-18
- learnJSON Files for AL Extension Projects2026-08-25
- learnLaunch JSON Settings for Business Central AL2026-10-16
- learnMigration JSON file2025-05-02
- learnMock outbound HttpClient web service calls during testing2025-03-17
- learnOptimize Visual Studio code editing and building performance2022-06-22
- learnPerformance Toolkit extension2024-02-21
- learnPerTenantExtensionCop analyzer2026-10-01
- learnResource exposure policy setting2024-01-03
- learnRuleset for the code analysis tool2022-06-24
- learnRun AL Tests in Visual Studio Code2026-03-05
- learnRunning a container-based development environment2023-10-04
- learnSandbox environments for Dynamics 365 Business Central development2024-03-01
- learnSet Conditional Breakpoints in AL2026-10-07
- learnSign an App Package File for Business Central2026-11-30
- learnSnapshot debugging2026-09-25
- learnTest Codeunits and Test Methods in AL2026-08-24
- learnTest Pages for Automated Business Central Tests2026-11-30
- learnTesting the application overview2025-09-30
- learnThe Txt2Al Conversion Tool2024-04-18