web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Unified Dev - gitignore configuration

(3) ShareShare
ReportReport
Posted on by 471
Despite adding the following lines in .gitignore, i still see the build files in git changes:
# D365FO
/*/**/*.rdl
/Metadata/Resources/**/*.resources.dll
/Metadata/Resources/**/*.delete
/Metadata/Resources/*.dll
/Metadata/Resources/BuildModelResult.xml
/Metadata/Resources/CompileLabels.xml
 
Is there a preconfigured gitignore file for d365fo development? If not, which lines should i add to ignore unnecessary files for the git repository? 
Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,647 Most Valuable Professional on at
    Let's assume your .gitignore file is at the same level as the Metadata folder.
     
    You have a rule that excludes Metadata/Resources/BuildModelResult.xml, therefore is assumes that your package is called Resources (and it won't work for any other package). Is it the name of your package? You've removed the information from your sceenshot, but I'm assuming it's not the case.
     
    You can do other things, such as ignoring the BuildModelResult.xml regardless of the location (rule: BuildModelResult.xml), ignoring it if it's in a folder one level below Metadata (rule: /Metadata/*/BuildModelResult.xml) or so.
     
    I'm pretty sure I've seen a .gitignore file for D365FO on GitHub, but I'm not sure where exactly.
  • Anthony Blake Profile Picture
    3,152 Super User 2026 Season 1 on at
     
    You've missed a folder level on most lines of you /gitignore.
     
    # D365FO
    /*/**/*.rdl
    /Metadata/<YOUR MODEL NAME>/Resources/**/*.resources.dll
    /Metadata/<YOUR MODEL NAME>/Resources/**/*.delete
    /Metadata/<YOUR MODEL NAME>/Resources/*.dll
    /Metadata/<YOUR MODEL NAME>/Resources/BuildModelResult.xml
    /Metadata/<YOUR MODEL NAME>/Resources/CompileLabels.xml
     
    Anthony
     
     
  • EK-26061005-0 Profile Picture
    471 on at
     
    The root level of the repository has the gitignore file, Metadata folder and Projects folder. I have only hidden the model name in the screenshot. As you have pointed out, I missed the model name level in the ignore files. Despite correcting the lines, the ignored files are still in git-changes. The only way to get rid of them is to ignore and untrack the items one by one but this also stages the ignored files for removal in staged changes. Is this due to the source repository still containing the files to be ignored?
     
    I also assume XppSource and XppMetadata folders are unnecessary since the source code that's used to build is in /Metadata/MyMDL/MyMDL/Ax* folders already. Is this correct?
     
  • Suggested answer
    Anthony Blake Profile Picture
    3,152 Super User 2026 Season 1 on at
     
    Personally, I prefer to exclude everything, then include the folders I need by exception, so the Repo works really nicely for unidev or mapped to PackagedLocalDirectory on a CHE.
     
    However, take a look at this exception list from Nathan Clouse https://www.atomicax.com/article/giting-started-git-d365fo-and-other-puns
     
     
     
    You will just need to adjust for your gitignore level. However, to reiterate Martin's point, you don't need to specify a location at all for some of these files, as you can see from the example above. It will exclude them wherever they are, current folder or subfolders.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 692

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 532 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 478

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans