You can use the following PowerShell script to download the latest CRM development tools in NuGet. These tools include:
Tool |
NuGet | Package
Code Generation ToolCrmSvcUtil.exe |
Microsoft.CrmSdk.CoreTools |
Configuration Migration ToolDataMigrationUtility.exe |
Microsoft.CrmSdk.XrmTooling.ConfigurationMigration.Wpf |
Package DeployerPackageDeployer.exe |
Microsoft.CrmSdk.XrmTooling.PackageDeployment.WPF |
Plug-in registration ToolPluginRegistration.exe |
Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool |
Solutionpackager ToolSolutionPackager.exe |
Microsoft.CrmSdk.CoreTools |
1. Open Windows PowerShell
2. CD ***,CD to the specific download path
3. Copy the following script statement to PowerShell and run
$sourceNugetExe="Https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"$targetNugetExe=". \nuget.exe"Remove-item. \tools-force-recurse-erroraction Ignoreinvoke-webrequest$sourceNugetExe-outfile$targetNugetExeSet-alias NuGet$targetNugetExe-scope Global-Verbose####Download Plugin Registration Tool##./nuget Install Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool-O. \toolsmd. \tools\pluginregistration$prtFolder= Get-childitem./tools | Where-object {$_. Name-match' Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool. ' Move. \tools\$prtFolder\tools\*.*. \tools\pluginregistrationremove-item. \tools\$prtFolder-force-Recurse####Download Coretools##./nuget Install Microsoft.CrmSdk.CoreTools-O. \toolsmd. \tools\coretools$coreToolsFolder= Get-childitem./tools | Where-object {$_. Name-match' Microsoft.CrmSdk.CoreTools. ' Move. \tools\$coreToolsFolder\content\bin\coretools\*.*. \tools\coretoolsremove-item. \tools\$coreToolsFolder-force-Recurse####Download Configuration Migration##./nuget Install MICROSOFT.CRMSDK.XRMTOOLING.CONFIGURATIONMIGRATION.WPF-O. \toolsmd. \tools\configurationmigration$configMigFolder= Get-childitem./tools | Where-object {$_. Name-match' MICROSOFT.CRMSDK.XRMTOOLING.CONFIGURATIONMIGRATION.WPF. ' Move. \tools\$configMigFolder\tools\*.*. \tools\configurationmigrationremove-item. \tools\$configMigFolder-force-Recurse####Download Package Deployer##./nuget Install Microsoft.CrmSdk.XrmTooling.PackageDeployment.WPF-O. \toolsmd. \tools\packagedeployment$pdFolder= Get-childitem./tools | Where-object {$_. Name-match' MICROSOFT.CRMSDK.XRMTOOLING.PACKAGEDEPLOYMENT.WPF. ' Move. \tools\$pdFolder\tools\*.*. \tools\packagedeploymentremove-item. \tools\$pdFolder-force-Recurse####Download Package Deployer PowerShell module##./nuget Install Microsoft.CrmSdk.XrmTooling.PackageDeployment.PowerShell-O. \tools$pdPoshFolder= Get-childitem./tools | Where-object {$_. Name-match' Microsoft.CrmSdk.XrmTooling.PackageDeployment.PowerShell. ' Move. \tools\$pdPoshFolder\tools\*.*. \tools\packagedeployment.powershellremove-item. \tools\$pdPoshFolder-force-Recurse####Remove NuGet.exe##Remove-item Nuget.exe
4. Under the corresponding folder, find the Downloaded tool
[Your folder]\Tools\ConfigurationMigration
[Your folder]\Tools\CoreTools
[Your folder]\Tools\PackageDeployment
[Your folder]\Tools\PluginRegistration
When you need to download the latest version of the tool, rerun the above script.
Official document: Download tools from NuGet
Dynamics 365-Download new version of development tools