How to Fix Error in Visual Studio ‘Unable to locate NuGet.exe’

Typically, the message you see in the output window looks like this:

Error: Unable to locate '<pathspec>\.nuget\NuGet.exe'

Fortunately, the fix is pretty simple:

1. Find the .nuget folder in your solution. Inside, locate nuget.Targets, and open the file.

2. Locate a portion of the file that looks like this:

<!-- Download NuGet.exe if it does not already exist -->
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false (etc.)

… and change it to this:
<!-- Download NuGet.exe if it does not already exist -->
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">true (etc.)

3. All should be well.