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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Visual studio detects 50000 changes that look like compiled application base? How do I fix this?

(0) ShareShare
ReportReport
Posted on by 197

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?

pastedimage1681946027712v1.png

Note that's just the top of the list, there's actually 50000 entries or more.

I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    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

  • jt1024 Profile Picture
    197 on at

    Thanks Mohit,

    So did you implement a .tfignore file?  What has your experience been?

    Jim

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    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.

  • jt1024 Profile Picture
    197 on at

    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.

  • Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at

    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.

  • jt1024 Profile Picture
    197 on at

    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.

  • Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans