We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ba754f commit 7bd2915Copy full SHA for 7bd2915
1 file changed
build/NuGetPack.ps1
@@ -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
0 commit comments