官术网_书友最值得收藏!

Using solutions to package our work

A new concept introduced with Dynamics CRM 2011 is that of solution packages. This allows for code separation, ease of deployment, and cleans up the mess sometimes created in previous version by the large number of possibly unorganized customizations.

Getting ready

In order to follow through with this recipe, log in to your instance of Dynamics CRM 2011 with an account that has either an administrator or system customizer role. These roles have the necessary out-of-the-box permission to allow you to work with solutions.

How to do it...

A solution package is a collection of customizations and configurations that can be generated in an environment and relocated to an additional environment. Creating a new solution is a process that a system administrator or a system customizer can achieve with the following steps:

  1. Navigate to Settings.
  2. Under Customization, click on Solutions.
  3. In the All Solutions view, select New to create a new solution package.
    How to do it...
  4. Fill in the mandatory fields, create a new Publisher or use the default value, and click on the Save icon.
    How to do it...

Note

When developing a solution for the Marketplace (as an ISV) you will need to fill in most of the provider information.

Removing a solution is also a very simple process. Select the solution to be removed, and click on the Delete icon.

Tip

If this is a managed solution, all solution configurations are cleanly removed from the environment. For an unmanaged solution, the process is not as straight-forward, as the removal of an unmanaged solution will leave behind customizations and trailing components. For additional details on solution see the Solution model section of this recipe.

How it works...

Creating a new solution requires you to assign a publisher. By default, each instance of Dynamics CRM 2011 includes a default publisher for the instance. For environments where a solution is to be published to production, create a publisher that includes the organization details of the customizer.

There's more...

Solutions offer additional features such as versioning, which can be essential in tracking progress and deploying to the production environment.

Solution model

Also, with solutions, we have two very important models, a managed and unmanaged solution model. A managed solution is a restrictive package, which can only be edited by specific users, and can be cleanly rolled back. An unmanaged solution on the other hand is a type of package used mostly for development environments, and it allows various developers to move customizations from one environment to another, while keeping all customizations editable by all users with the proper permissions. Unmanaged solutions, when removed, will not be removed cleanly, and will leave behind traces of customizations. For this reason, they are not the recommended way of deploying to the production environment.

See also

主站蜘蛛池模板: 开阳县| 怀仁县| 屏东县| 汶川县| 漳平市| 于田县| 西乌珠穆沁旗| 寻乌县| 英德市| 定日县| 饶平县| 金昌市| 阿拉善右旗| 桑植县| 涞水县| 福贡县| 利津县| 施秉县| 苗栗县| 青海省| 文昌市| 曲水县| 云霄县| 峨边| 竹溪县| 道真| 吉林市| 威信县| 正镶白旗| 句容市| 开远市| 库伦旗| 邹平县| 道真| 富川| 岑溪市| 阿坝县| 石阡县| 沈丘县| 邳州市| 宜昌市|