Search code examples
flutterflutter-testflutter-windows

flutter run -d windows - Showing error Nuget is not installed


When I Run the flutter run -d windows command it shows nuget is not installed error. How to solve this in windows.

nuget installation error

I tried Manual installation of nuget.exe and updated visual studio packages.

I run flutter doctor -v cmd no issues found.


Solution

  • The NuGet Command Line Interface (CLI), nuget.exe, provides the full extent of NuGet functionality to install, create, publish, and manage packages without making any changes to project files.

    1. Download the latest nuget.exe, (note: NuGet.exe 5.0 and later require .NET Framework 4.7.2 or later to execute)
    2. Move it to a folder in your system path, or put it in a folder and add that folder to the system path,
    3. Restart VSCode or your IDE
    4. flutter run -d windows