web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Unable to install SDK from Nuget on new machine

(0) ShareShare
ReportReport
Posted on by

docs.microsoft.com/.../download-tools-nuget

Works fine on my other desktop (and many others).  Any thoughts?

pastedimage1626457286010v1.png

I have the same question (0)
  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at
    RE: Unable to install SDK from Nuget on new machine

    Hi,

    Thank you for your query.

    Seems like this machine has an older version of .Net Framework.

    Latest assemblies require .Net Framework v4.6.2 or later.

    Either upgrade the .Net framework or get an older version of the package.

    Here is a post that explains to understand which version is required:

    Quickly get the right .NET Framework version to work with CoreAssemblies 9.0.2.x | D365 Demystified

    Here is a similar thread:

    (+) Issue with Microsoft.CrmSdk.CoreAssemblies installation - Dynamics 365 General Forum Community Forum

  • Rebel Leader Profile Picture
    on at
    RE: Unable to install SDK from Nuget on new machine

    I am on the latest .net framework

    Still baffled.

  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at
    RE: Unable to install SDK from Nuget on new machine

    Did you try running Powershell as an Administrator?

    It is possible current user do not have permissions on this folder.

  • Rebel Leader Profile Picture
    on at
    RE: Unable to install SDK from Nuget on new machine

    That was the second thing I tried.  Same result unfortunately : (

  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at
    RE: Unable to install SDK from Nuget on new machine

    I once shared my powershell script via github with a colleague..he had the same problem...The problem was solved after I provided him the script on a .txt file

  • Rebel Leader Profile Picture
    on at
    RE: Unable to install SDK from Nuget on new machine

    Got a new error when I tried that

    pastedimage1626470346544v1.png

  • meelamri Profile Picture
    13,216 User Group Leader on at
    RE: Unable to install SDK from Nuget on new machine

    Please share your script..

  • Rebel Leader Profile Picture
    on at
    RE: Unable to install SDK from Nuget on new machine

    I used this same one on another machine.

    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

    $sourceNugetExe = "dist.nuget.org/.../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 -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

  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at
    RE: Unable to install SDK from Nuget on new machine

    I had the same error as you ... I suggest you to use the script from the documentation using "Copy" utility: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/download-tools-nuget#download-tools-using-powershell

    pastedimage1626471321073v1.png

    Then, use Ctrl + v to paste the script into your PowerShell console and press Enter

    This might sound awkward...but it is possible that your script is broken because of a mistake when copying it..

  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at
    RE: Unable to install SDK from Nuget on new machine

    Hi,

    I tried this script and gave me the same error.

    The next I tried copying the script from Microsoft Docs and it worked, comparing both scripts, I see some difference, specially:

    Your script NuGet package path:  "dist.nuget.org/.../nuget.exe"

    Microsoft script: "">dist.nuget.org/.../nuget.exe"

    pastedimage1626471549880v1.png

    It is possible while copying script the link got shorten.

    To make it easy, why don't you copy the script from the following link and run it (simply click on the copy button and right-click on the PowerShell window), it worked.

    Download tools from NuGet (Developer Guide for Dynamics 365 Customer Engagement) | Microsoft Docs

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 101

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans