Hello,
New developer guy again.
I'm seeing these changes in my visual studio Pending Changes in my D365 project. Anyone have any idea of why these are suddenly there?
Note that's just the top of the list, there's actually 50000 entries or more.
Hi Jim, Please check this article and old thread on this topic.
dynamicsaxinsight.com/.../
community.dynamics.com/.../detected-50000-add-s-in-excluded-changes-in-pending-changes
Thanks Mohit,
So did you implement a .tfignore file? What has your experience been?
Jim
Yes Jim, I just implemented it and can see Detected: 50000 is reduced to zero. You need to add your custom models and I have included our ISVs as well in .tfiIgnore file. Let me know if any issues.
After you save the file in path (K:\AosService\PackagesLocalDirectory). Get latest on metadata and 50000 pending changes will be reduced.
Hello Mohit,
Interesting. Why would you add your custom code folders?
I thought the source control function was to keep watch for necessary changes, and to exclude our own custom code would seem to defeat the purpose.
That being said I trust your greater experience than mine and I expect there's some nuance here we can discuss?
Could it be that there are compiled items for which we don't want to store in source control?
I haven't come across training material to guide which folders to include / exclude yet, or I read it and it didn't click in my brain.
Looking forward to further useful discussion for us and the community.
Best Regards.
You're right that you shouldn't "exclude your own custom code", but AccountsPayableMobile package (to take the one from your screenshot) isn't your code. It's developed from Microsoft, you shouldn't ever change it (Visual Studio doesn't even allow it) and you shouldn't have it in source control either. Therefore telling your version control system to ignore it is the right approach and .tfignore is the way how to do it.
Hello Martin,
Thanks for your input.
So... why aren't these folders excluded by default in the D365 Visual Studio work environment setup? Did I do something wrong to have them suddenly show up as changed objects?
Thanks again.
Well, Microsoft potentially could deliver the application with .tfignore and .gitignore, but it's not the case. It would also open a question of code merge when updating the file (with your changes) on update.
But you don't need to build .tfignore from scratch. There is one on GitHub that you can use as the starting point.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 650 Super User 2025 Season 2
Martin Dráb 582 Most Valuable Professional
CU05031448-0 526