scottdurow / SparkleXrm

An open-source library for building Dynamics CRM XRM solutions using Script#, jQuery & Knockoutjs.
MIT License
267 stars 197 forks source link

Import Solution without Publishing #455

Open fergusonkw opened 2 years ago

fergusonkw commented 2 years ago

Request: I would like the ability to import a solution into a tenant, but skip/bypass the 'Publishing' portion of the import

Rationale: When using a solution to effectively act as a 'source control container' for Dynamics 365 work, I would like to take the contents of Solution A and add it to Solution B within the same instance. Because everything is housed in the same instance, publishing all the customizations is typically an unneeded step in this workflow.

Suggested Solution:

  1. Add an additional command/switch to SolutionPackagerTask.cs, perhaps importskippublish as a suggestion.
  2. Add an additional boolean parameter to the Pack method and ImportSolution method and condition lines 333-337 on this new parameter.
  3. Update the calls to the aforementioned methods to make use of the new parameter