Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Suggestions to speed u...
Finance forum

Suggestions to speed up building on Visual Studio for debugging on the demo VM?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

I'm trying to ramp up on AX 365 for operations as I had been mainly dealing with legacy support of AX 2009.

I've got the demo vm going a reasonable machine with the VM settings of 20 GB ram and 4 processors.

I can get the solution up and it runs fairly well.

In Visual Studio and I do something that I used to think was simple --> create a job and loop through the CustTable based on some criteria and show it. I create the runnable class and just a few simple lines. 

When I hit it to build and debug .. it takes forever.  It stays at build step x++ compilation output.

This is going to take forever just for 2 simple lines of code. 

Is there anything I can do about it? It's very painful.  

thanks

  • Carlo T Profile Picture
    Carlo T 30 on at
    RE: Suggestions to speed up building on Visual Studio for debugging on the demo VM?

    Is there more to this conversation? I'm also new to developing in D365 Finance and Operations and the time it takes to restart the debug after each code change is brutal. Can you please explain in detail how to put the code in its own package and not overlayer it?

    Thank you

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Suggestions to speed up building on Visual Studio for debugging on the demo VM?

    Hi Joris,

    Can you expand on do not put new models in Application suite just so I'm not misunderstanding?

    I go to Dynamics 365 > Model Management > Create new model.  And from there I select the models to reference like Application Suite and then build my classes and whatever I need to (e.g. for now it's runnable classes so I can get the hang of things).  

    It was brutal earlier.  it took almost 3 minutes to compile on the VM.  I rebooted the machine and after the 4th time compiling it took less than 1 minute.  

    thanks for taking the time to respond

  • Suggested answer
    Joris dG Profile Picture
    Joris dG 17,775 on at
    RE: Suggestions to speed up building on Visual Studio for debugging on the demo VM?

    Put your code in its own package. Don't overlayer or put new models in Application Suite. Each package compiles into a DLL, so the whole package with all models is always compiled. If you have your own package and just reference app suite (so you can use custtable etc) your DLL and compile time will be very small.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Suggestions to speed up building on Visual Studio for debugging on the demo VM?

    Thanks Sukrut! Appreciate your help and advice.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Suggestions to speed up building on Visual Studio for debugging on the demo VM?

    Hi Sukrut,

    Thanks for letting me know your experiences.  It was driving me crazy as I try to ramp up and learn 365.  Time to upgrade the box!

    It's not a related question but I see you have so many years of experience in AX whereas I have limited experience.  I'm reading all the blogs and trying them out to get a feel of the understanding but I'm feeling overwhelmed.

    There isn't a clear tutorial like the step-by-step fleet management tutorial.  Would there be any other suggestions you would recommend?

    thanks for your help.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Suggestions to speed up building on Visual Studio for debugging on the demo VM?

    maybe it's just my environment.  I left for a bit and came back and it was fast as lightning for a couple things I was trying.  And then it was back to slow as a snail.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans