forked from microsoft/FeatureManagement-Dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpack.ps1
More file actions
29 lines (21 loc) · 806 Bytes
/
pack.ps1
File metadata and controls
29 lines (21 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<#
.Synopsis
This script creates NuGet packages from all of the projects in this repo.
Note: build.cmd should be run before running this script.
#>
[CmdletBinding()]
param(
)
$ErrorActionPreference = "Stop"
$PrebuiltBinariesDir = "bin\BuildOutput"
$PublishRelativePath = "bin\PackageOutput"
$LogDirectory = "$PSScriptRoot\buildlogs"
$Solution = "$PSScriptRoot\Microsoft.FeatureManagement.sln"
# Create the log directory.
if ((Test-Path -Path $LogDirectory) -ne $true) {
New-Item -ItemType Directory -Path $LogDirectory | Write-Verbose
}
#
# The build system expects pre-built binaries to be in the folder pointed to by 'OutDir'.
dotnet pack -o "$PublishRelativePath" /p:OutDir=$PrebuiltBinariesDir "$Solution" --no-build | Tee-Object -FilePath "$LogDirectory\build.log"
exit $LASTEXITCODE