locked
How to publish unmanaged Solution programmatically RRS feed

  • Question

  • Hi, 

    I am writing a application to Export and Import solutions programmatically. Both Export and Import are working fine but I am struggling to publish the unmanaged solutions

    Can anyone provide me an example to publish whole solution. 

    Thanks in advance.

    Tuesday, June 25, 2013 1:01 PM

Answers

  • Hi,

    You need to use the PublishAllXmlRequest - for unmanaged solutions, you don't publish the specific solution, rather all the current un published customisations. 

    PublishAllXmlRequest request= new PublishAllXmlRequest();
    service.Execute(request);

    Of course, managed solutions are published automatically.

    hth


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Tuesday, June 25, 2013 2:11 PM
    Answerer

All replies

  • Hi,

    You need to use the PublishAllXmlRequest - for unmanaged solutions, you don't publish the specific solution, rather all the current un published customisations. 

    PublishAllXmlRequest request= new PublishAllXmlRequest();
    service.Execute(request);

    Of course, managed solutions are published automatically.

    hth


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Tuesday, June 25, 2013 2:11 PM
    Answerer
  • You can use either the PublishXml or the PublishAllXml request - see http://msdn.microsoft.com/en-us/library/gg334390.aspx

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Tuesday, June 25, 2013 2:16 PM
    Moderator