Created
January 7, 2017 03:47
-
-
Save bevand/4acf28f36d7aa683b42f6e7b2c0a2577 to your computer and use it in GitHub Desktop.
Powershell push all packages from local folder
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
#add source | |
nuget sources Add -Name "custom-feed" -Source "https://newhostednugetfeed.com/custom-feed/nuget/v3/index.json" -username | |
USERNAME -password PASSWORD | |
$files = Get-ChildItem C:\LocalNuGetTest\*.nupkg | |
ForEach ($file in $files) { | |
#echo $file.fullName | |
nuget push -Source "custom-feed" -ApiKey VSTS $file.fullName | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment