Saturday, January 5, 2019

Setup Azure DevOps as version control for D365 F&O Project

The setup needed to get your latest changes in Dynamics 365 for Finance and Operations on Azure DevOps (previously called Visual Studio online) is quite different when compared to the AX 2012 Version control setup. 

And the main reasons for this change in VCS are: 

  1. Morphix is gone with D365 F&O, and all development and setup moves to Visual Studio instead
  2. Also the file system approach for storing the code changes is back. Although the format of the files in which the code changes and relative metadata is XML now 

So obviously it is important to know the Local Repository location ðŸ˜„

As D365 F&O is a web service now, you can always 

  1. Go to the root directory - by simply right-clicking the webservice (under IIS) and select Explore
  2. Then find the file for the web.config and open it
  3. And finally, search for "Aos.PackageDirectory" in order to get the Local Repository location. 



And the next important to understand is how to setup the Folder structure under your Azure DevOps Project (don't forget to select "Team Foundation Version Control" option during the creation of the project)




The folder structure is basically to have two separate folders so that you can have your Metadata and Projects mapped separately to two separate local folders

  1. Metadata
  2. Projects




And once you setup the Workspaces in the Visual Studio to have 
  1. Metadata - mapped to the Local Repository folder (which you can find as mentioned above)
  2. Projects - to be mapped to any specific folder which you create locally. This is where all your new Project files will be stored eventually




Hope this helps. Happy coding!

No comments:

Post a Comment