Skip to content

TheNetworg/dynamics365-release-automation-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamics 365 Release Automation Tools

Tools for automation of Dynamics 365 solution deployment

Installation

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

Functions

1. Update Custom Workflow Steps to the Latest Version

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

Assembly Filter

Update-AssemblyUsageToLatestVersion -ZipFileName ..\samples\solutions\test.zip -AssemblyName TNTGTools

2. Remove Missing Dependencies From solution.xml

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

3. Replace dependency version with version from specific DLL

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"

Known Users

If you are using this library and would like to be listed here, please let us know!

Contributing

We accept contributions via Pull Requests on Github.

Credits

Support

If you find a bug or encounter any issue or have a problem/question with this library please create a new issue.

License

The MIT License (MIT). Please see License File for more information.

About

Tools for automation of Dynamics 365 solution deployment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published