Skip to content
Development

How to Set Up and Configure Dynamics 365 F&O in Visual Studio

Caf2Code June 30, 2021 2 min read

Before you can start developing for D365 Finance and Operations, you need to set up your environment in Visual Studio. If that sounds intimidating, rest assured, it is actually quite simple and will take less than 10 minutes.

Editor's update — June 2026: This 2021 walkthrough reflects the older toolchain, and the developer experience has since changed. Microsoft now requires Visual Studio 2022 for Finance & Operations development; the pre-2022 Visual Studio extensions are deprecated and no longer shipped. The standalone "Dynamics 365" toolbar menu used in the steps below now lives under Extensions > Dynamics 365 in the unified developer experience, where tooling is installed after connecting via the Power Platform Tools extension. Cloud-hosted developer VMs provisioned through Lifecycle Services have been replaced by the Unified Developer Environment (UDE), a Dataverse-backed sandbox provisioned through PowerShell and managed in the Power Platform admin center. Lifecycle Services itself is being retired, with new LCS project creation frozen for new customers as of February 16, 2026. The Best Practice configuration and editor settings described here remain valid, but they're now set under the VS 2022 extension.

Before you can start developing for D365 Finance and Operations, you need to set up your environment in Visual Studio. If that sounds intimidating, rest assured, it is actually quite simple and will take less than 10 minutes.

To Set Up Your D365 F&O VS Environment:

Original screenshot not recoverable from the web archive
Step0-1-1024x576.png

1. Right-click on Visual Studio and select "Run as Administrator".

Original screenshot not recoverable from the web archive
Step1-1024x554.jpg

2. Click on the Dynamics 365 drop down menu on the toolbar and select "Options".

Original screenshot not recoverable from the web archive
Step2-1_LI-1024x576.jpg

3. In the popup window, select the following options:

      • In "Text Editor", select word wrap and line numbers.
      • In "Dynamics 365", select Best Practices and select each of the following:
          • Microsoft.Dynamics.AX.Framework.BestPracticeFramework.UIRules
          • Microsoft.Dynamics.AX.Framework.CodeStyleRules
          • Microsoft.Dynamics.AX.Framework.DataAccessRules
          • Microsoft.Dynamics.AX.Framework.DataEntityRules
          • Microsoft.Dynamics.AX.Framework.DataMethodRules
          • Microsoft.Dynamics.AX.Framework.DepreciatedElementsRules
          • Microsoft.Dynamics.AX.Framework.MaintainabilityRules
          • Microsoft.Dynamics.AX.Framework.StaticCodeValidationRules
      • In "Dynamics 365", select Projects and select Organize projects by element type.
Original screenshot not recoverable from the web archive
Step3-1_LI-3-1024x555.jpg

4. Click Ok to save your settings.

Caf2Code is a Microsoft Solutions Partner specializing in Dynamics 365 Finance & Operations, Power Platform, and Power BI. Originally published June 30, 2021; restored to caf2code.com in 2026.

Working on Dynamics 365 or Power Platform?

Caf2Code is a Microsoft Solutions Partner. Whether it is F&O development, security, reporting, or an end-to-end implementation, our team can help.