Details about Problem
NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):
NuGet version (x.x.x.xxx): 4
dotnet.exe --version (if appropriate): N/A
VS version (if appropriate): 2017
OS version (i.e. win10 v1607 (14393.321)): Win 10 1607 14393.693
Worked before? If so, with which NuGet version: 2.8.x
Detailed repro steps so we can see the same problem
-
Run "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\amd64\MSBuild.exe" /t:restore some.sln
-
Compare results with "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\msbuild.exe" /t:restore some.sln
BuildTools is missing some nuget related things and #1 works while #2 does not. #2 complains of "target 'restore' does not exist" in the projects within solution.
...