Fight your randomly unpublished duplication rules
If you ever used duplicate rules in Dynamics CRM you probably experienced that your rules unpublish randomly. That's not 100% random because it's only triggered when you import and publish the unmanaged solution, but it's not done every time.
The action that triggers this is Publish All Customization that you invoke every time you import unmanaged solution to the CRM.
I made an managed solution to make your life easier by automating the republishing unpublished duplication rules after those rules are unpublished by Publish All Customization action.
You can find solution on the link. Solution is easy to configure and you will be able to use it in just few minutes after initial configuration.
Check it on GitHub
After initial configuration you just need to select which rules you want to be automatically republished.