Skip to main content

Notifications

Community site session details

Community site session details

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

Unified Dev - gitignore configuration

(2) ShareShare
ReportReport
Posted on by 369
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:
  • EK-26061005-0 Profile Picture
    369 on at
    Unified Dev - gitignore configuration
     
    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?
     
  • Anthony Blake Profile Picture
    2,528 Super User 2025 Season 1 on at
    Unified Dev - gitignore configuration
     
    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
     
     
  • Suggested answer
    Martin Dráb Profile Picture
    234,449 Most Valuable Professional on at
    Unified Dev - gitignore configuration
    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 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.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 565

#2
Martin Dráb Profile Picture

Martin Dráb 536 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 402 Super User 2025 Season 1

Product updates

Dynamics 365 release plans