Overview XrmDeploy – Build & Deploy Plugins is a productivity extension for Microsoft Dynamics 365 / Dataverse developers that streamlines the plugin deployment workflow directly inside Visual Studio. Instead of manually building assemblies, opening external deployment tools, selecting environments, and uploading plugin DLLs, XrmDeploy enables you to build and deploy your plugin assemblies to multiple environments with just a few clicks. Key Features ✔ Build and deploy plugins directly from Solution Explorer ✔ Right-click any plugin project and deploy instantly ✔ Environment quick-picker with keyboard navigation ✔ Automatic plugin assembly create/update ✔ Supports multiple deployment environments ✔ Visual Studio themed UI for a native experience ✔ Supports both Visual Studio 2019 and Visual Studio 2022 ✔ Automatically detects merged assemblies (*Merged.dll) when available ✔ Falls back to primary assembly output automatically Getting Started
Install XrmDeploy from the Visual Studio Marketplace and restart Visual Studio.
Create a file named: connection.json Place this file at the solution root level (same folder as your .sln file). Example: MySolution/ ├── MySolution.sln ├── connection.json ├── PluginProject/ 3. Configure Environments Add your CRM / Dataverse connection strings inside connection.json. Example: { "Environments": { "DEV": "AuthType=OAuth;Url=https://yourdev.crm.dynamics.com;...", "UAT": "AuthType=OAuth;Url=https://youruat.crm.dynamics.com;...", "PROD": "AuthType=OAuth;Url=https://yourprod.crm.dynamics.com;..." } } Environment names will automatically appear inside the deployment picker. How to Deploy Open your solution in Visual Studio Right-click your plugin project in Solution Explorer Click: Deploy Plugin Select target environment Confirm deployment XrmDeploy will automatically: Build the selected project Locate the output DLL Connect to the target environment Check whether the plugin assembly already exists Update existing assembly OR create a new assembly Supported Project Types XrmDeploy works with: Dynamics 365 Plugin Projects Dataverse Plugin Projects .NET Class Library projects Requirements Visual Studio 2019 or Visual Studio 2022 Microsoft Dynamics 365 / Dataverse environment Plugin registration privileges Notes The selected project must be a Class Library connection.json must exist at the solution level Environment names are loaded dynamically from connection.json Connection strings are stored locally and are never transmitted anywhere except your target CRM environment Feedback & Issues Feedback, feature requests, and bug reports are welcome. Build faster. Deploy smarter. Stay inside Visual Studio. |