Answered by:
How to test a plug-in for CRM 2011 Online without the need to publish it?

Question
-
Hello,
Is there any way to test a plug-in for the CRM 2011 Online without to do the publication of that plugin in the CRM?
I've found some examples but all were developed to CRM 2011 On Premisse or to CRM 4.0 On Premisse, none to the CRM 2011 Online.
The process of deploy/test/debug/build/deploy again is very complicated and very tedious!! I would like to use the Visual Studio to debug my plug-ins instead of to store the error messages in an entity of CRM (it's a BIG workaround).
Is that possible ?
Marcos
Tuesday, August 30, 2011 6:34 PM
Answers
-
That would require using an offline on-premise deployment registered in sandbox mode. Then you can hook your debugger to the sandbox worker process and step through your code as long as you deploy your .pdb file to the disk deployment location.
THAT BEING SAID,
it looks like there is a nifty plugin profiler tool you can use now too.
http://msdn.microsoft.com/en-us/library/hh372952.aspx
Check it out and tell me what you think.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Tuesday, August 30, 2011 7:24 PM
- Marked as answer by Jamie MileyModerator Monday, February 20, 2012 3:56 PM
Tuesday, August 30, 2011 7:24 PMModerator -
Hello Marcos,
You can try.
But from my point of view it is better to create dev/test environment and test everything on this environment. Good article which describes how to create such kind of environment is
http://crmscape.blogspot.com/2010/09/creating-ms-crm-2011-vm-part-1-of-2.html
http://crmscape.blogspot.com/2010/09/creating-ms-crm-2011-vm-part-2-of-2.html
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Jamie MileyModerator Monday, February 20, 2012 3:56 PM
- Marked as answer by Jamie MileyModerator Monday, February 20, 2012 3:56 PM
Wednesday, August 31, 2011 6:59 AMModerator
All replies
-
The only good way I can think of to do this is to maintain a second instance of CRM, either online or on-premise where you can register the plug-in's in sandbox mode and test.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Tuesday, August 30, 2011 6:43 PM
- Unproposed as answer by Marcos Antonio Assis Tuesday, August 30, 2011 6:49 PM
Tuesday, August 30, 2011 6:43 PMModerator -
I already have another instance of CRM Online but the scenario or the process is the same yet (deply/test/debug/build/deploy again).
The problem is that I don't want to register or to publish the plugin to do tests, I would like to do this in off line mode (in my local machine) and to use the Visual Studio to debug the code.
Marcos
Tuesday, August 30, 2011 7:14 PM -
That would require using an offline on-premise deployment registered in sandbox mode. Then you can hook your debugger to the sandbox worker process and step through your code as long as you deploy your .pdb file to the disk deployment location.
THAT BEING SAID,
it looks like there is a nifty plugin profiler tool you can use now too.
http://msdn.microsoft.com/en-us/library/hh372952.aspx
Check it out and tell me what you think.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Tuesday, August 30, 2011 7:24 PM
- Marked as answer by Jamie MileyModerator Monday, February 20, 2012 3:56 PM
Tuesday, August 30, 2011 7:24 PMModerator -
OK, this make sense.
My questions began when I've found this thread:
http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/2e4be66f-b2e5-424e-a7c1-f898422fc16d/
What you think? Is it really possible ?
Marcos
Tuesday, August 30, 2011 7:49 PM -
Hello Marcos,
You can try.
But from my point of view it is better to create dev/test environment and test everything on this environment. Good article which describes how to create such kind of environment is
http://crmscape.blogspot.com/2010/09/creating-ms-crm-2011-vm-part-1-of-2.html
http://crmscape.blogspot.com/2010/09/creating-ms-crm-2011-vm-part-2-of-2.html
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Jamie MileyModerator Monday, February 20, 2012 3:56 PM
- Marked as answer by Jamie MileyModerator Monday, February 20, 2012 3:56 PM
Wednesday, August 31, 2011 6:59 AMModerator