Tools for automation of Dynamics 365 solution deployment
To get started clone the repository and run:
Import-Module .\module\dynamics365-release-automation-tools
OR
Module is available in PowerShell Gallery
Run PowerShell as administrator and allow remotely downloaded scripts:
Set-ExecutionPolicy RemoteSigned
Install the latest version from PowerShell Gallery:
Install-Module dynamics365-release-automation-tools
Import the installed module:
Import-Module dynamics365-release-automation-tools
This cmdlet will replace all custom assembly references in the solution ZIP file with the highest build number of the assembly referenced in the solution. NOTE: You have to include the latest Assembly component in the solution!
Update-AssemblyUsageToLatestVersion ..\samples\solutions\test.zip
Update-AssemblyUsageToLatestVersion -ZipFileName ..\samples\solutions\test.zip -AssemblyName TNTGTools
There may be a situation when you have all the components in place and solution import should proceed without issues but the solution import wizard throws this error:
The import of the solution XYZ failed. The following components are missing in your system and are not included in the solution. Import the managed solutions that contain these components (Active) and then try importing this solution again.
The import wizard does not perform any check whether the component is actually present in the environment.
You can remove it with this cmdlet:
Remove-MissingDependencies ..\samples\solutions\test.zip
Update-AssemblyUsageToAssemblyVersion -ZipFileName ..\samples\solutions\test.zip -AssemblyPath ..\samples\assemblies\assembly.dll
Alternatively you can use following command to specify the assembly version without the DLL:
Update-AssemblyUsageToVersion -ZipFileName ..\samples\solutions\test.zip -AssemblyName Test -AssemblyVersion "1.0.0.0" -AssemblyFQN "TestAssembly.Test, version=1.0.0.0,
Culture=neutral, PublicKeyToken=123a4b567890c123"
If you are using this library and would like to be listed here, please let us know!
We accept contributions via Pull Requests on Github.
If you find a bug or encounter any issue or have a problem/question with this library please create a new issue.
The MIT License (MIT). Please see License File for more information.