Skip to content

Commit 7bd2915

Browse files
committed
finished packing script ... just run this like
'mykey' | .\NuGetPack.ps1
1 parent 9ba754f commit 7bd2915

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

build/NuGetPack.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
param(
2+
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
3+
[string]
4+
$apiKey
5+
)
6+
7+
del *.nupkg
8+
9+
$nuget = '..\src\.nuget\nuget'
10+
11+
Get-ChildItem -Path .. -Include *.nuspec -Recurse | % { Start-Process $nuget -ArgumentList "pack $(Join-Path ([IO.Path]::GetDirectoryName($_)) ([IO.Path]::GetFileNameWithoutExtension($_) + '.csproj')) -Build -Prop Configuration=Release -Exclude '**\*.CodeAnalysisLog.xml'" -NoNewWindow -Wait }
12+
Get-ChildItem *.nupkg | % { &$nuget push $_ $apiKey }
13+
del *.nupkg

0 commit comments

Comments
 (0)