forked from Azure/azure-webjobs-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.ps1
29 lines (22 loc) · 771 Bytes
/
Build.ps1
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
param (
[string]$packageSuffix = "0"
)
dotnet --version
dotnet build Webjobs.sln -v q
if (-not $?) { exit 1 }
$projects =
"src\Microsoft.Azure.WebJobs\WebJobs.csproj",
"src\Microsoft.Azure.WebJobs.Host\WebJobs.Host.csproj",
"src\Microsoft.Azure.WebJobs.Logging\WebJobs.Logging.csproj",
"src\Microsoft.Azure.WebJobs.Logging.ApplicationInsights\WebJobs.Logging.ApplicationInsights.csproj",
"src\Microsoft.Azure.WebJobs.Extensions.EventHubs\WebJobs.EventHubs.csproj",
"src\Microsoft.Azure.WebJobs.ServiceBus\WebJobs.ServiceBus.csproj"
foreach ($project in $projects)
{
$cmd = "pack", "$project", "-o", "..\..\buildoutput", "--no-build"
if ($packageSuffix -ne "0")
{
$cmd += "--version-suffix", "-$packageSuffix"
}
& dotnet $cmd
}