简体   繁体   中英

Automate the process of exporting the default solution from Dynamics CRM 2011

I am responsible for multiple Dynamics CRM environments where we have our customizations deployed. What I would like to do is automate the process of exporting the default solution to the file system. From there I can compare the solutions from different environments.

Is there a way to do this via PowerShell or perhaps the Dynamics SDK?

Take a look at the "XRM CI Framework" by Wael Hamze , which has some PowerShell cmdlets that wrap some common operations that you can perform using the SDK. The distro includes an " ExtractCustomizations.ps1 " script that probably does most of what you want already.

He's also published a blog post on how to " Automate your Dynamics CRM Builds and Deployments with PowerShell ". In particular, you'd be interested in the Import-XrmSolution and Export-XrmSolution cmdlets, which wrap the ImportSolutionRequest and ExportSolutionRequest , respectively.

Links:

The CRM 2011 SDK includes methods to Export and Import solutions. When exporting the destination is a zip file in the file system.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM