Skip to content

Commit a58aab6

Browse files
Add nuget.exe and PowerShell script to build all packages
1 parent 87bf650 commit a58aab6

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#Ignore build artifacts
2+
*.nupkg
3+
14
#Ignore thumbnails created by Windows
25
Thumbs.db
36

nuget/nuget-pack.ps1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
$ErrorActionPreference = "Stop"
2+
3+
Clear
4+
5+
Remove-Item ".\*.nupkg"
6+
7+
Get-ChildItem ".\" -Recurse -Include *.nuspec | `
8+
9+
Foreach-Object {
10+
Write-Host "Building NuGet package '$($_.Name)'"
11+
12+
& ".\nuget.exe" pack $_.FullName -BasePath "$($_.DirectoryName)" -OutputDirectory ".\"
13+
14+
if ($LASTEXITCODE -ne 0)
15+
{
16+
Write-Error "Error generating nupkg for '$($_.Name)'"
17+
break
18+
}
19+
}

nuget/nuget.exe

5.09 MB
Binary file not shown.

0 commit comments

Comments
 (0)