Skip to content

Instantly share code, notes, and snippets.

@ursenzler
Created April 8, 2014 07:00
Show Gist options
  • Save ursenzler/10098444 to your computer and use it in GitHub Desktop.
Save ursenzler/10098444 to your computer and use it in GitHub Desktop.
executes nuget update on all Appccelrate repos
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
cd $scriptPath
$solutions = Get-ChildItem $scriptPath -Recurse -Filter *.sln
foreach($solution in $solutions)
{
write-host $solution.FullName
$packagesFolder = (Split-Path -parent $solution.FullName) + "\packages"
write-host using $packagesFolder as repository path
& nuget update -RepositoryPath $packagesFolder -Verbose -Source "https://www.nuget.org/api/v2/;https://teamcity.bbv.ch/guestAuth/app/nuget/v1/FeedService.svc/;$scriptPath\NuGetPackages" $solution.FullName
write-host ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment