Last active
August 23, 2017 08:22
-
-
Save akamyshanov/318d0c59aaa400e0ee7f8af255a18731 to your computer and use it in GitHub Desktop.
Commands NuGet to pack all .nuspec files in directory
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
param ( | |
[string]$Version = "0.0.0-dev", | |
[string]$OutputDirectory = "bin" | |
) | |
Get-ChildItem $OutputDirectory -Include "*.nupkg" -Depth 1 | Remove-Item | |
$nuspecs = Get-ChildItem "*.nuspec" -File -Recurse | |
foreach($nuspec in $nuspecs) { | |
nuget pack $nuspec.FullName -OutputDirectory "bin" -Version $version | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment