Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give option to specify -PackagesDirectory or -SolutionDirectory #1

Closed
cable729 opened this issue Feb 8, 2016 · 6 comments
Closed

Comments

@cable729
Copy link

cable729 commented Feb 8, 2016

Hi, thanks for the great gulp package. I've used it for restoring solution nuget packages, but now that I'm trying to create a more focused fast build, I'm trying to restore just a few packages from a .csproj. This is what happens:

MSBuild auto-detection: using msbuild version '4.0' from 'C:\Windows\Microsoft.NET\Framework\v4.0.30319'.

Cannot determine the packages folder to restore NuGet packages. Please specify either -PackagesDirectory or -SolutionDirectory.

C:\app\node_modules\gulp-nuget-restore\index.js:32
                throw error;
                ^

Error: Command failed: C:\app\node_modules\gulp-nuget-restore./nuget.exe restore C:\app\UnitTests\TestUtils\TestUtils\TestUtils.csproj
Cannot determine the packages folder to restore NuGet packages. Please specify either -PackagesDirectory or -SolutionDirectory.

I'm happy to give this a shot on my own if you don't have time. I haven't worked on npm packages before, though.

TerribleDev added a commit that referenced this issue Feb 8, 2016
@TerribleDev
Copy link
Owner

v0.3.0 adds additional arguments where you can specify things such as packagedirectory

@cable729
Copy link
Author

cable729 commented Feb 8, 2016

👍 Thanks for the fast support!

@cable729
Copy link
Author

cable729 commented Feb 8, 2016

Hey @tparnell8 -- Looks like the 0.3.0 package on npmjs.com is missing index.js.

@TerribleDev
Copy link
Owner

@cable729 weird..i'll take a peek!

@TerribleDev
Copy link
Owner

@cable729 not sure how that happened. Just published 0.3.1 and I downloaded it right after (it contains index.js)

@cable729
Copy link
Author

cable729 commented Feb 9, 2016

Awesome! Yeah, it was strange. It was included in your release .zip. Thanks for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants