Last active
December 18, 2015 01:48
-
-
Save adbre/5706177 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
# If you use MyGet.org at your company, this script can be modified and distributed to help your | |
# developers set up MyGet.org access. | |
$feedUrl = "https://www.myget.org/F/CHANGEME/" | |
$feedName = "ChangeMe" | |
$nuget = Read-Host "Enter path to NuGet.exe" | |
echo "" | |
echo "You need your API Key. It can be obtained from MyGet.org" | |
echo "Open your personal profile and go to Security." | |
echo "The API key is a guid value simlar to bf4899d8-d3f6-4f0c-bfbe-2ca4b198d043" | |
echo "" | |
$feedApiKey = Read-Host "Enter your API key" | |
$feedUsername = Read-Host "Enter your username" | |
$feedPassword = Read-Host "Enter your password" | |
& $nuget sources remove -name $feedName | |
& $nuget setapikey $feedApiKey -source $feedUrl | |
& $nuget sources add -name $feedName -source $feedUrl -Username $feedUsername -Password $feedPassword |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment