topic hubProjectsofficial - Microsoftreviewed - checked by Opus

Configure projects and workspaces

Configuring AL projects and workspaces in Visual Studio Code for Business Central development. It answers questions about multi-root workspaces, per-folder settings, and project references in app.json, including symbol resolution, publishing, and recovery from publishing failures.

Path: Development > Development environment > Configure projects and workspaces · tier official · system projects · narrative reviewed (checked by Opus)

Overview

This section explains how to organize more than one AL project in a single Visual Studio Code workspace. One page covers multi-root workspaces: grouping several AL project folders into a code-workspace file and setting options such as the package cache path and code analysis for each folder.

The second page covers project references. When a referenced project exists locally in the workspace, you declare the dependency in app.json and symbols resolve automatically without downloading them. The page also describes how projects load in the workspace, how dependencies are published, and how to recover when publishing fails.

Start with the multi-root workspace page to set up the workspace and folder-level settings. Then read the project references page to wire the projects together and understand publishing behavior.

Key points

  • Multi-root workspaces in Visual Studio Code group several AL project folders into one workspace.
  • A code-workspace file is created to define the workspace.
  • al.packageCachePath and al.enableCodeAnalysis can be set per folder.
  • The multi-root page mentions the AL0720 inherent permissions diagnostic and runtime version 18.0.
  • Project references are defined in app.json and apply where the referenced projects exist locally.
  • With project references, symbols resolve automatically without downloads.
  • The project references page covers project loading, dependency publishing, RAD publishing, and incremental build.
  • The project references page mentions versions 25 and 21.1 and explains recovery from publishing failures.

Learn pages

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 2 Learn pages