Download Dynamics 365 tools from NuGet
As updated in my previous blog, Dynamics CRM SDK got replaced with MS Developers guide. Previously, we were able to get the Dynamics CRM related tools () within SDK.
But, Dynamics 365 doesn’t has SDK so we need to download the Dynamics 365 tools from NuGet. PFB steps to download the same:
Tool | NuGet Package |
Code generation tool CrmSvcUtil.exe |
Microsoft.CrmSdk.CoreTools |
Configuration Migration tool DataMigrationUtility.exe |
Microsoft.CrmSdk.XrmTooling.ConfigurationMigration.Wpf |
Package Deployer PackageDeployer.exe |
Microsoft.CrmSdk.XrmTooling.PackageDeployment.WPF |
Plug-in Registration Tool PluginRegistration. |
Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool |
SolutionPackager tool SolutionPackager.exe |
Microsoft.CrmSdk.CoreTools |
Download tools using PowerShell
- In your Windows Start menu, type
Windows Powershell
and open it. - Navigate to the folder you want to install the tools to. For example if you want to install them in a
devtools
folder on your D drive, typecd D:\devtools
. -
Copy and paste the following PowerShell script into the PowerShell window and press Enter.
$sourceNugetExe = “https://dist.nuget.org/win-x86-commandline/latest/nuget.exe”
$targetNugetExe = “.\nuget.exe”
Remove-Item .\Tools -Force -Recurse -ErrorAction Ignore
Invoke-WebRequest $sourceNugetExe -OutFile $targetNugetExe
Set-Alias nuget $targetNugetExe -Scope Global -Verbose##
##Download Plugin Registration Tool
##
./nuget install Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool -O .\Tools
md .\Tools\PluginRegistration
$prtFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match ‘Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool.’}
move .\Tools\$prtFolder\tools\*.* .\Tools\PluginRegistration
Remove-Item .\Tools\$prtFolder -Force -Recurse##
##Download CoreTools
##
./nuget install Microsoft.CrmSdk.CoreTools -O .\Tools
md .\Tools\CoreTools
$coreToolsFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match ‘Microsoft.CrmSdk.CoreTools.’}
move .\Tools\$coreToolsFolder\content\bin\coretools\*.* .\Tools\CoreTools
Remove-Item .\Tools\$coreToolsFolder -Force -Recurse##
##Download Configuration Migration
##
./nuget install Microsoft.CrmSdk.XrmTooling.ConfigurationMigration.Wpf -O .\Tools
md .\Tools\ConfigurationMigration
$configMigFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match ‘Microsoft.CrmSdk.XrmTooling.ConfigurationMigration.Wpf.’}
move .\Tools\$configMigFolder\tools\*.* .\Tools\ConfigurationMigration
Remove-Item .\Tools\$configMigFolder -Force -Recurse##
##Download Package Deployer
##
./nuget install Microsoft.CrmSdk.XrmTooling.PackageDeployment.WPF -O .\Tools
md .\Tools\PackageDeployment
$pdFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match ‘Microsoft.CrmSdk.XrmTooling.PackageDeployment.Wpf.’}
move .\Tools\$pdFolder\tools\*.* .\Tools\PackageDeployment
Remove-Item .\Tools\$pdFolder -Force -Recurse##
##Remove NuGet.exe
##
Remove-Item nuget.exe
4. You will find the tools in the following folders:
[Your folder]\Tools\ConfigurationMigration
[Your folder]\Tools\CoreTools
[Your folder]\Tools\PackageDeployment
[Your folder]\Tools\PluginRegistration
This was originally posted here.
*This post is locked for comments