Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

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!

Wednesday, September 20, 2017

Switching user in visual studio 2015

Today when I logged into one of my VMs and started to use another Account with my Visual Studio 2015 - I have faced this issue - "Your account XXXX@YYYY.com cannot be connected to Visual Studio as you have already logged in with AAAA@BBBB.com. If you want to change the user - use Switch user. And if you want to continue, enter the credentials again" 

The error message might not be exactly the same, but you get the point. 


The solution I have applied is to clear of the register for the current User setting. You can do that by: 



  1. Open run > regedit
  2. Go to HKEY_CURRENT_USER > Software > Microsoft > VSCommon > 14.0 > ClientServices > VisualStudio > IdeUser
  3. Delete the existing ID
  4. Restart Visual Studio 
  5. Login with your desired credentials 
  6. and OLA... it should work. 
Happy coding!