Created
October 4, 2015 19:18
-
-
Save torgro/842845fd87e19d4e850d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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