web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Creating several deployment packages with single build

(0) ShareShare
ReportReport
Posted on by

Hi all,

there is a article in msdn, in which it explains how to create a package for CRM Package Deployer (msdn.microsoft.com/.../dn688182.aspx)

My question is: is there any option to create several packages with one build? 

for example, i have solution1, solution2, solution3, solution4 in my PkgFolder, I want these` when my project is built, i want to have (for example) 2 packages first one includes solution1, solution2, solution3, and the second one solution2, solution3, solution4

Thank you

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Bas van de Sande Profile Picture
    4,383 on at

    Hi Aram,

    a package deployer project is a visual studio project. Within a visual studio solution you can have as many projects you want. This means that you can add multiple packager projects and let these refer to the same pkgfolder.

    I have one question though... what do you want to achieve with it?

    Bas

  • Community Member Profile Picture
    on at

    Hi Bas,

    thanks for replay

    let me describe the whole work - for example I have 10 solutions and 4 different instances, I need to deploy different packages to these 4 instances, each package is combination from these 10 solutions, I need to know do I have to create a different project for each package or it is possible to do everything within one project

    thanks

    Aram

  • Community Member Profile Picture
    on at

    Looking at the code, I assume this is possible by running several ExportSolutionResponse/Requests.

  • Suggested answer
    Bas van de Sande Profile Picture
    4,383 on at

    Hi Aram,

    If I were you, I would create one project per package (thus per instance). I believe that's the most easy way to maintain your projecs. All these projects can use the same pkgfolder.

    Bas

  • Community Member Profile Picture
    on at

    Hi Erik

    Do you think this is will be compatible with creating nuget package for octopack ?

  • Community Member Profile Picture
    on at

    Hi Bas

    Yes, I think this is the easiest way, can you please advice how to make them use the same pkgfolder

    Aram

  • Bas van de Sande Profile Picture
    4,383 on at

    Hi Aram,

    what you can do is create the projects within the solution.

    Unload a project from the solution; then you can edit the project file (xml) and change the pkgfolder location. Then reload the project.  Repeat this for all projects

    Bas

  • Community Member Profile Picture
    on at

    but what about ImportConfig.xml file, I think I need different files for each project, in order to create the packages I need

    Aram

  • Bas van de Sande Profile Picture
    4,383 on at

    Hi Aram,

    I think thay might be a good solution.

    what you can do is to check the contents of the importconfig.xml in the first project you create.  If you have entries with the crm solution files you want to import, then you can use that xml in the other projects and change the paths in those files to let them point to a central location containing the crm solution files.

    Please let me know, how this worked out

    Bas

  • Community Member Profile Picture
    on at

    Hi Bas

    within the <solution> node there is the list of solutions to be added in the package, when building the project a package is created which includes solutions from that list, like this 

    <solutions>
        <configsolutionfile solutionpackagefilename="SampleSolutionOne_1_0_managed.zip" />
        <configsolutionfile solutionpackagefilename="SampleSolutionTwo_2_0_managed.zip" />
        <configsolutionfile solutionpackagefilename="SampleSolutionThree_3_0_managed.zip" />
    </solutions>

    my main problem is to create different packages, but the content of depends on this node, do you thinks i should have different pkgfolders for each project ?

    thanks
    Aram

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans