forked from dotnet/aspnet-api-versioning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pack.ps1
22 lines (17 loc) · 768 Bytes
/
pack.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
param(
[String] $Configuration = "Release",
[String] $VersionStatus = ""
)
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
if ( !(Test-Path NuGet) ) {
New-Item NuGet -ItemType Directory
} else {
Get-ChildItem NuGet -Filter *.nupkg | Remove-Item -Force
}
$VersionSuffix = ""
if ( ![String]::IsNullOrEmpty($VersionStatus)) {
$VersionSuffix = "--version-suffix"
}
dotnet pack src\Microsoft.AspNetCore.Mvc.Versioning --configuration $Configuration --output NuGet $VersionSuffix $VersionStatus
dotnet pack src\Microsoft.AspNet.WebApi.Versioning --configuration $Configuration --output NuGet $VersionSuffix $VersionStatus
dotnet pack src\Microsoft.AspNet.OData.Versioning --configuration $Configuration --output NuGet $VersionSuffix $VersionStatus