tag:blogger.com,1999:blog-6691994129222744759.post5830984814061925826..comments2024-03-21T11:36:24.769-07:00Comments on Dynamics GP Land: Reset GP During AddIn TestingChristina Phillipshttp://www.blogger.com/profile/03332221198245457747noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6691994129222744759.post-46919959710232002782009-05-12T16:57:00.000-07:002009-05-12T16:57:00.000-07:00Thanks for the tip.
It sounds almost like a tie ...Thanks for the tip. <br /><br />It sounds almost like a tie to me. Your approach copies the DLL, attaches to the process for debugging, and launches GP. But it doesn't close GP, select the set file, or login automatically.<br /><br />While the approach I outlined quickly kills GP, copies the file, relaunches GP, handles the set file, and logs in automatically, but does not automatically attach VS to the process. Since I find the close + launch + login to be the most time consuming / tedious elements, I guess I wanted to automate those steps for sure.<br /><br />Perhaps there is a way to combine both approaches. I guess the next time I write an AddIn, I'll see if I can merge them.Steve Endowhttps://www.blogger.com/profile/03950475674093020502noreply@blogger.comtag:blogger.com,1999:blog-6691994129222744759.post-5423646460458816482009-05-12T08:34:00.000-07:002009-05-12T08:34:00.000-07:00In Visual Studio you can simply set the properties...In Visual Studio you can simply set the properties of the startup project (the GP Addin) on its Debug Tab to start Dynamics GP as the the External Program (i.e. C:\Program Files\Microsoft Dynamics\GP\Dynamics.exe). Then when you start Debugging VS will automatically launch GP and hookup the debugger to it. You can't tell GP what SET file to use so when it starts it will ask you for it, just navigate to the GP folder and select it (VS will remember the folder on subsequent debugs). Then you just logon normally. Great thing with this method is it allows debugging code that you have at launch such as hooking up GP Menus. Also, I typically have VS copy the GP Addin DLL for me to the GP Addin Folder as a post build job.DEDHeadhttps://www.blogger.com/profile/09406552329802534666noreply@blogger.com