You can now download a Visual Studio 2019 project template for Microsoft Dynamics SL 2018 from the Visual Studio marketplace.
After installing Visual Studio 2019, I tried to use the method described in an earlier post to use the official project template with it. That simply didn’t work. After listening to episode 1630 of DotNetRocks, “Visual Studio Templates with Layla Porter,” I decided to create a version of the Dynamics SL 2018 Project Template for VS 2019. That worked! I checked the license for the source code included in the template, the Microsoft Public License, and concluded that it allowed me to publish the template as an extension.
In order to use this project template, you must have a Microsoft Dynamics SL 2018 client installed on your workstation. It references two DLLs that are installed with the client. I used the project template from CU1 (Cumulative Update 1) when creating this template, but it should work equally well with the GA (General Availability) release and CU2.
The target framework for the project template defaults to “.Net Framework 4 Client Profile.” If your workstations or Citrix server have a higher version of the .Net Framework installed, or you want to use more than just the Client Profile, you can change that. Do not set it lower than the .Net Framework 4.
You will need to add controls the the toolbox manually. To do that:
1) Right-click in the toolbox and select Add Tab. Name it Dynamics SL.
2) Right-click in the new tab and select “Choose items…”
3) Browse to “C:\Program Files (x86)\Common Files\Microsoft Shared\DynamicsSL”.
4) Select the Microsoft.Dynamics.SL.Controls.dll. Click Open.
5) The controls (DSLCheck, DSLCombo, DSLDate, DSLFloat, DSLGrid, DSLInteger, DSLMaskedText, DSLOption, and DSLUpdate) should automatically be checked and highlighted. Click OK.
If you have any feedback about this template, or adding the controls to the toolbox, please leave a comment below or click Contact to send an email.