Flutter windows build: Nuget is not installed

Viewed 3386

I uninstalled Visual Studio 2019 and installed it as 2022.

I reinstalled Flutter. When building Flutter desktop, the following problem is repeated.

If I run it in another project, it works without any problem.

Launching lib\main.dart on Windows in debug mode...
Building Windows application...
Nuget is not installed.
Nuget.exe not found, trying to download or use cached version.
2 Answers

Although I don't know why it would work without this error message on the same machine, I recently ran into this issue as well. The way I fixed it was to download the nuget executable and add it to my path.

That worked for me. But i have to notice that restart vs code needed after

Related