Skip to content

Instantly share code, notes, and snippets.

@jonny64bit
Last active September 12, 2017 09:30
Show Gist options
  • Save jonny64bit/747fd97cf3a4f4ff08956b60da8e1231 to your computer and use it in GitHub Desktop.
Save jonny64bit/747fd97cf3a4f4ff08956b60da8e1231 to your computer and use it in GitHub Desktop.
param([string]$version)
function Push-Package
{
param([string]$location, [string]$projectName, [string]$nugetServer, [string]$apiKey, [string]$packageName=$projectName)
Set-Location -Path $location
nuget pack "$($projectName).csproj"
nuget push "$($packageName).$($version).nupkg" -s $nugetServer $apiKey
}
Push-Package "C:...d" "..." ".." "..." "optional..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment