Tags

,

The SPKL Task Runner facilitates automated deployment for Dynamics 365 CE,unpacking CRM solution, generating early bound classes etc more details can be found here.  The following section briefly highlights the usage of spkl tool set.

  • Create a VS class library project and search for spkl in Nuget

spkl1

spkl Task Runner has a dependency on CRM SDK and this is will detected and installed automatically

spklTaskRunner

  • Once spkl is installed you will see a series of .bat files and a spkl.json file as shown below. The CRM SDK tool set will be under coretools

spklTaskRunner1

spkl2

Modify the following settings in spkl.json , solution_uniquename will be the pointer to the CRM solution and packagetype will be either unamanged/managed depending on how you want to deploy the CRM solution.

spkl3

Running unpack.bat connect to CRM instance and download the package within your Visual Studio IDE. Install the following extension for Visual Studio

spkl4

Once the extension is installed command prompt can be opened from within Visual Studio IDE and invoke unpack.bat

spkl5

 

spkl6

The server configuration will be saved in

C:\Users\<username>\AppData\Roaming\CrmServer\Credentials.xml

Once the solution is extracted the components and associated log will be in the VS project

spkl7

Deploying to the target environment is achieved by invoking pack+import.bat

spkl8