Skip to content

Instantly share code, notes, and snippets.

@torgro
Created October 4, 2015 19:18
Show Gist options
  • Save torgro/842845fd87e19d4e850d to your computer and use it in GitHub Desktop.
Save torgro/842845fd87e19d4e850d to your computer and use it in GitHub Desktop.
$nugetConfig = @'
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="WindowsAzure.ServiceBus" version="2.6.7" targetFramework="net45" />
</packages>
'@
Set-Content -Path .\packages.config -Value $nugetConfig
$nuget = Get-PackageProvider -Name Nuget -ErrorAction SilentlyContinue -WarningAction SilentlyContinue
if($nuget -and $nuget.Features -and (Test-Path -Path $nuget.Features.exe))
{
& $nuget.Features.exe install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment