RamblingCookieMonster / PSDepend

PowerShell Dependency Handler
MIT License
285 stars 76 forks source link

Add PSModuleNuget DependencyType #3

Closed RamblingCookieMonster closed 8 years ago

RamblingCookieMonster commented 8 years ago

This dependency type does not rely on the PowerShellGet module.

Logic was added to the PSDepend.psm1 to ensure a nuget.exe is available for the dependency type. It checks for an existing nuget.exe in your path, it checks a configurable path in PSDepend\PSDepend.NuGetPath, downloads to that path if it isn't found, and adds the parent folder to your $ENV:Path.

We currently require a Target to be specified for an installation location. I'm torn on specifying a default for this, but would be open to it.