Skip to main content

Notifications

Announcements

No record found.

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 185

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.

  • Martin Dráb Profile Picture
    Martin Dráb 230,488 Most Valuable Professional on at
    RE: Visual studio detects 50000 changes that look like compiled application base? How do I fix this?

    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.

  • jt1024 Profile Picture
    jt1024 185 on at
    RE: Visual studio detects 50000 changes that look like compiled application base? How do I fix this?

    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
    Martin Dráb 230,488 Most Valuable Professional on at
    RE: Visual studio detects 50000 changes that look like compiled application base? How do I fix this?

    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
    jt1024 185 on at
    RE: Visual studio detects 50000 changes that look like compiled application base? How do I fix this?

    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.

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,550 Super User 2024 Season 1 on at
    RE: Visual studio detects 50000 changes that look like compiled application base? How do I fix this?

    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
    jt1024 185 on at
    RE: Visual studio detects 50000 changes that look like compiled application base? How do I fix this?

    Thanks Mohit,

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

    Jim

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,550 Super User 2024 Season 1 on at
    RE: Visual studio detects 50000 changes that look like compiled application base? How do I fix this?

    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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,791 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans