get Dataverse Tools For CrmDeveloperTools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$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 Plug-in Registration tool | |
## | |
./nuget install Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool -Version 9.0.2.7 -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 -Version 9.0.2.6 -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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment