Skip to content

Instantly share code, notes, and snippets.

@thoemmi
Created May 4, 2012 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoemmi/2597457 to your computer and use it in GitHub Desktop.
Save thoemmi/2597457 to your computer and use it in GitHub Desktop.
Get-NuGetPackageFolder
function Get-NuGetPackageFolder {
param(
[string] $package_name,
[string] $nuget_packages_config
)
$xml = [xml](gc $nuget_packages_config)
$package = $xml.packages.package | where { $_.id -eq $package_name }
Join-Path $packages_dir ($package_name + "." + $package.version)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment