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

Getting nugetRestore to do anything. #54

Closed
domingoladron opened this issue Jun 8, 2017 · 2 comments
Closed

Getting nugetRestore to do anything. #54

domingoladron opened this issue Jun 8, 2017 · 2 comments
Labels

Comments

@domingoladron
Copy link

Hey there.

All I want is to have the nugetRestore to restore all the requisite packages for my solution file.

When I run

gradle nugetRestore

The command runs, and says 'up-to-date' when run. But no nuget packages get restored.
I am running the command from the gradle root folder. Sitting in my root folder is the sln file ,and in a subfolder are my projects. If I run nuget restore MySolution.sln everthing works hunky dory. All packages are restored.
My gradle configuration for nugetRestore looks like this

nugetRestore {
    solutionFile = 'Coactive.API.sln'
    packagesDirectory = 'packages'
}

A little help would be most appreciated on what I'm doing wrong.

@gluck
Copy link
Contributor

gluck commented Jun 8, 2017

Maybe run gradle with info log level to see what command it's calling (if any) ? (gradle -i)
Feel free to look at ILRepack build log to see the expected output and compare to yours

:nugetRestore (Thread[main,5,main]) started.
:nugetRestore
Executing task ':nugetRestore' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
Restoring NuGet packages 
Starting process 'command 'C:\Users\appveyor\.gradle\caches\nuget\3.5.0\NuGet.exe''. Working directory: C:\projects\il-repack Command: C:\Users\appveyor\.gradle\caches\nuget\3.5.0\NuGet.exe restore -NonInteractive -Verbosity normal

@gluck gluck added the question label Jun 8, 2017
@domingoladron
Copy link
Author

@gluck ,

Well-called, my friend. It looks like the version of the gradle nuget package was an older one. Once I upgraded to 2.12, it's now working like a champion.

Great stuff. Thanks so much.

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

No branches or pull requests

2 participants