Skip to content

How To Install NuGet

Mötz Jensen edited this page Mar 12, 2021 · 1 revision

Install NuGet

This how-to will guide you on how to install the latest available nuget.exe onto your machine.

Prerequisites

  • Machine with D365FO installed
  • PowerShell 5.1
  • d365fo.tools module installed
  • d365fo.tools module loaded into a PowerShell session

Please visit the Install as an Administrator or the Install as a Non Administrator tutorials to learn how to install the tools.

Please visit the Import d365fo.tools module tutorial to see the different ways you can load the d365fo.module into a PowerShell session.

Install latest nuget.exe

Installation of the latest NuGet is done with the Invoke-D365InstallNuget cmdlet. Using this command will also update the internal path inside the module pointing to the nuget.exe. Type the following command:

Invoke-D365InstallNuget

Closing comments

In this how to we showed you how to install the latest NuGet on your machine. By using the Invoke-D365InstallNuget cmdlet, you also updated the path for the module where to look for nuget.exe. If you just want to update the path for the nuget.exe, you can look into the Set-D365NugetPath cmdlet.

Clone this wiki locally