How To Download The Dynamics 365 CE Plugin Registration Tool

Talha Manzoor
0


 


In this article, will explain how to download the Plugin Registration Tool using Power Shell Script from Nuget.

Follow the below steps to download the same.

Step 1

Create a folder in D Drive and name it as “DevTools“

Step 2

Click on Windows, search for Windows PowerShell and open it.





Step 3

Type the below command to change the directory.

cd D:\DevTools


Step 4

 Copy & Paste the below PowerShell script in PowerShell Window to download Plugin Registration Tool from Nuget.


$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

##

##Remove NuGet.exe

##

Remove-Item nuget.exe

Plugin Registration Tool is downloaded successfully.



To get the latest version of this Plugin Registration Tool, repeat the steps mentioned above

Hope you have successfully downloaded Plugin Registration Tool from NuGet using Powershell script.



Post a Comment

0Comments

Post a Comment (0)