Reputation: 2327
I'm just getting started with Microsoft Dynamics 365.
As I muck about with it, I'd like to have my source code in a git repo so I can track my changes and go back, if necessary or desirable.
I created a repo on Azure DevOps, however, it seems Visual Studio 2017 is not keeping local copies of my metadata in the project folder, so when I add and push the contents of this folder, the stuff I'm interested in does not go to the repo.
I gather my updated metadata is actually going into C:\AOSService\PackagesLocalDirectory , but how can I include this as part of my project?
Upvotes: 1
Views: 931
Reputation: 5117
Use symbolic links to link the Metadata folder in your Git repository to the Metadata folder of the AOSService\PackagesLocalDirectory
.
There are several blogs out there that explain how to set up your Git repository so you can use it for D365FO development in Visual Studio. One of the first was probably Using git with Dynamics 365 for Finance and Operations.
A bit more recent is Using Git with MSDyn365FO (same author) that also contains a link to another blog that explains it.
The basic idea of creating symbolic links is not something specific to D365FO and there are lots of detailed instructions out there on how to create a symbolic link. One example is The Complete Guide to Creating Symbolic Links (aka Symlinks) on Windows.
Upvotes: 2