Reputation: 12214
I've been trying to build a code downloaded from here.
The problem is that whenever i try building it, i always receive following 3 errors:
1. D:\NuGetPackageVisualizer-master.nuget\nuget.targets(87,9): error : 'C:\Documents' is not recognized as an internal or external command,
2. D:\NuGetPackageVisualizer-master.nuget\nuget.targets(87,9): error : operable program or batch file.
3. D:\NuGetPackageVisualizer-master.nuget\nuget.targets(87,9): error MSB3073: The command ""D:\NuGetPackageVisualizer-master.nuget\nuget.exe" install "D:\NuGetPackageVisualizer-master\packages.config" -source "" -RequireConsent -solutionDir "D:\NuGetPackageVisualizer-master\ "" exited with code 1.
The line number 87 in Nuget.targets
is:
< Exec Command="$(RestoreCommand)" LogStandardErrorAsError="true" Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
And there is no "C:\Documents"
directory.
Instead, there is a directory named "C:\Documents and Settings/..."
in C: which contain the 2 NuGet-related directories.
- One is: C:\Documents and Settings\Muneeb\Application Data\NuGet,
which contains the NuGet.Config
file.
- The other one is: C:\Documents and Settings\Muneeb\Local Settings\Application Data\NuGet,
which contains the Cache
directory.
I'm facing this problem not only in this project but in any other that i try to download and build.
But if I create a project from scratch, no such build error would come!
I've pounded my head alot but am unable to fix this issue.
Any help in this regard will be greatly appreciated! Thanks
Upvotes: 0
Views: 2707
Reputation: 8025
'C:\Documents' is not recognized as an internal or external command
The process appears to be interpreting the spaces in the offending path as distinct arguments. Try surrounding the path in double quotes.
Upvotes: 3