locked
Export plugin registrations RRS feed

  • Question

  • I want to rename my plugin assembly, is there any way of exporting and reapplying the registration information. I was hoping I could export it, adjust it appropriately and then reapply....

    I believe the old version of the plugin registration tool could export to XML (and there is a command line tool to reapply it), but the 2011 version doesn't seem to have that capability.

    Anyone know a tool or any other method I could use?

    Thanks!

    Wednesday, May 18, 2011 2:06 PM

Answers

  • You can do a retrievemultiple call on these entities and serialize the results to XML.

    Then you could write something to read the xml and use create calls to recreate the entities. 

    The entity types you would be intrested in I think would be 

    - sdkmessageprocessingstepsecureconfig

    - sdkmessageprocessingstepimage

    - sdkmessageprocessingstep


    Jamie Miley
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
    Thursday, May 19, 2011 7:00 PM
    Moderator

All replies

  • Why can't you right click on the project in Visual Studio and rename the assembly there, then recompile it?  Then you just use the plugin registration tool to unregister the first one and then register the new one with the new name.

    There is a command line registration tool out there though too.

    http://mileyja.blogspot.com/2011/04/plugin-registration-console-application.html


    Jamie Miley
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
    Wednesday, May 18, 2011 2:27 PM
    Moderator
  • Jamie,

    I will be renaming in visual studio, it's just that I have a lot of registration information, some plug-ins are registered to multiple entities and multiple messages often with pre and/or post images. They often trigger on particular fields changing as well. So deleting it all and re-adding it is a right pain.

    I'm writing a lot of plug-ins and I'm adjusting my naming standard as I go. I hoped there would be a way to extract the registration entries to text or XML and, do the rename there and then re-publish it. It would also mean I could version them along with the plug-ins.

    Thinking about it I'll try the console tool as you suggest and version the XML input. The only pain point is typing in all my existing registrations as an XML file, I was hoping to extract them but unfortunately the 2011 plugin tool doesn't do that anymore.

    Thanks.

     

     

     


    Thursday, May 19, 2011 4:48 PM
  • You can do a retrievemultiple call on these entities and serialize the results to XML.

    Then you could write something to read the xml and use create calls to recreate the entities. 

    The entity types you would be intrested in I think would be 

    - sdkmessageprocessingstepsecureconfig

    - sdkmessageprocessingstepimage

    - sdkmessageprocessingstep


    Jamie Miley
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
    Thursday, May 19, 2011 7:00 PM
    Moderator
  • Jamie,

    I did start looking at writing something, but right now I don't have the time. Maybe when I get chance. It would be a nice tool to have.

    LJ

    Friday, May 20, 2011 11:26 AM
  • So does that answer your question?
    Jamie Miley
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
    Friday, May 20, 2011 1:12 PM
    Moderator
  • Jamie,

    I will mark it as the answer although I it wasn't the answer I was hoping for :o) You confirmed what I suspected that there is no easy way!

    I started looking at the plugin registration tool to see if I could pull it apart quickly but it does seem a little more complicated than I hoped ...

    LJ

     

    Sunday, May 22, 2011 8:21 PM