cake-build / resources

Contains different kind of resources such as bootstrappers and configuration files.
MIT License
54 stars 79 forks source link

nuget doesn't download dependencies in the Addins folder #37

Closed xclayl closed 7 years ago

xclayl commented 7 years ago

Start with tools\Addins\packages.config: <?xml version="1.0" encoding="utf-8"?>

<packages>
    <package id="Moq" version="4.7.99" />
</packages>

run build.ps1.

The Castle.Core package isn't downloaded.

(We're actually using an internal package with a dependency. Moq is just an example package with a dependency)

xclayl commented 7 years ago

Looks like packages.config can't work any other way

gep13 commented 7 years ago

@xclayl sorry, not sure what you mean by your last statement. Can you clarify?

xclayl commented 7 years ago

nuget.exe only restores packages that are explicitly defined in packages.config. So when using Visual Studio to add Moq, it also adds the package Castle.Core to packages.config for you.

gep13 commented 7 years ago

@xclayl gotcha. There is some on-going work in the 0.22.0 release of Cake which should address this issue. Please follow this PR for more information:

https://github.com/cake-build/cake/issues/1743

xclayl commented 7 years ago

Thanks, looking forward to it!