forked from Morcatko/Morcatko.AspNetCore.JsonMergePatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dotnet-pack-6.ps1
13 lines (11 loc) · 844 Bytes
/
dotnet-pack-6.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
Param (
[Parameter(Mandatory=$True, HelpMessage='eg. "0-Preview123"')]
[ValidateNotNull()]
$versionSuffix)
& dotnet pack "$PSScriptRoot\src\6.0-JsonMergePatch.Document" --configuration Release --version-suffix $versionSuffix
& dotnet pack "$PSScriptRoot\src\6.0-JsonMergePatch.NewtonsoftJson" --configuration Release --version-suffix $versionSuffix
& dotnet pack "$PSScriptRoot\src\6.0-JsonMergePatch.SystemText" --configuration Release --version-suffix $versionSuffix
New-Item -ItemType Directory -Force -Path "$PSScriptRoot\.nugets"
& copy "$PSScriptRoot\src\6.0-JsonMergePatch.Document\bin\Release\*.*nupkg" "$PSScriptRoot\.nugets"
& copy "$PSScriptRoot\src\6.0-JsonMergePatch.NewtonsoftJson\bin\Release\*.*nupkg" "$PSScriptRoot\.nugets"
& copy "$PSScriptRoot\src\6.0-JsonMergePatch.SystemText\bin\Release\*.*nupkg" "$PSScriptRoot\.nugets"