Salut ✊🏽🖐🏽!INTRODUCTION
With the introduction of AL + Visual Studio Code, Business Central userscan now make use of the variety of source code management tools availablein the new developer tool. This is a game changer as it simplifies theprocess of change tracking of your customizations unlike previously whenyou had track any changes through meticulous code commenting in C/SIDE.In this blog I shall provide a step by step guide on how to setup sourcecode management for your on-premises Business Central extension development.So let's begin:STEP 1 : Install VS Code and Configure Git
Open your visual studio code IDE (Download and install from here) and locatethe Source Control button in the Action Bar (Ctrl+Shift+G).If you haven't installed and configured Git then you will see the screen below:Click on Install git. This will navigate to the GitHub download page where you willdown load the executable file and run in in your windows machine. After installing git,open the git bash located in C:\Program Files\Git and enter the two commands shown below:(Replace the user email and user name with you actual credentials)Now when you open VS Code and click on the Source Control button in the Action Bar(Ctrl+Shift+G) the VS Code window will look below:STEP 2 : Clone Remote Repository
The easiest way to link to GitHub is to clone an already existing repo into alocal folder structure. Once you click on the "clone repository" button, VS Codeasks you to select the folder where your local copy shall be cloned to and thenyou are taken to the GitHub login screen.After you have entered your credentials, VS Code then asks for your repo URL Linkwhich can be gotten from your GitHub account. Once you enter the URL Link the foldersand files will be downloaded and a local copy of your GitHub Repository will be createdfor you in the folder you selected earlier.STEP 3 : AL GO!
At this point, we create our AL Project files and folder using VS Code AL GO snippet.
A journal of my interactions with D365BC & Power Bi


Comments
Post a Comment