HowTo - Set up a development environment for BusinessCentralApps
Introduction
Every time I try to create a customization for “BusinessCentralApps”, I have problems setting up an executable environment. I think this is because I only work with it from time to time and remove my environments when I have done what I wanted to do. So that I don't have to search so long in the future, I want to share my findings on setting up a development environment for BusinessCentralApps here.
Prerequisites
First you need to check if you have all the prerequisites
Access to the Github Repo
If you don't already have access to the BusinessCentralApps Repo on Github you can request Access by filling the following form REQUEST ACCESS.
Hardware
- Hard disk space: 500 MB.
- CPU: Four cores minimum
- Memory:
- 16 GB for development only.
- 32 GB for developing and deploying locally.
- 64 GB for developing large apps.
For more info see AL Development Requirements
Sofware
There is a bunch of software you should have installed to get everything running. You can donwload everything and install it the classic way or you can use the provided winger or chocolatey commands. If you want to use chocolatey you need to install it first. Check out the chocolatey website for more information.
PowerShell 7
- Download
https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4#installing-the-msi-package - WinGet
winget install --id Microsoft.Powershell --source winget - Chocolatey
choco install powershell-core
Git
- Download
https://git-scm.com/download/win - WinGet
winget install --id Git.Git -e --source winget - Chocolatey
choco install git
Visual Studio Code with AL Language Extension
- Download
https://code.visualstudio.com/download - WinGet
winget install -e --id Microsoft.VisualStudioCode - Chocolatey
choco install vscode.install
GitHub CLI
- Download
https://cli.github.com/ - WinGet
winget install --id GitHub.cli - Chocolatey
choco install gh
Docker
For Docker Desktop you need to enable the "Hyper-V" Windows feature. Then you can install Docker Desktop.
- Download
https://docs.docker.com/desktop/install/windows-install/ - WinGet
--- - Chocolatey
choco install docker-desktop
Setting it up
"name": "Your own server",
"request": "launch",
"type": "al",
"environmentType": "OnPrem",
"server": "http://bcserver",
"serverInstance": "BC",
"authentication": "UserPassword",
"breakOnError": "All",
"launchBrowser": true,
"startupObjectId": 130451,
"startupObjectType": "Page",
"enableLongRunningSqlStatements": true,
"enableSqlInformationDebugger": true,
"tenant": "default",
"usePublicURLFromServer": false,
"schemaUpdateMode": "ForceSync",
"dependencyPublishingOption": "Ignore"
}
"C:/ProgramData/BcContainerHelper/compiler/bcserver/dlls/OpenXML",
"C:/Program Files/dotnet/shared/Microsoft.NETCore.App/8.0.2",
"C:/Program Files/dotnet/shared/Microsoft.AspNetCore.App/8.0.2",
"C:/ProgramData/BcContainerHelper/compiler/bcserver/dlls/Service",
"C:/ProgramData/BcContainerHelper/compiler/bcserver/dlls/Mock Assemblies"
"${CodeCop}"
]
Kommentare
Kommentar veröffentlichen