Skip to content
This repository was archived by the owner on Jun 1, 2024. It is now read-only.

Commit 61362a5

Browse files
author
Vadim Hatsura
committed
Adjust powershell build script
1 parent 91358f7 commit 61362a5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Build.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ echo "In directory: $PSScriptRoot"
22

33
$solution = "serilog-sinks-elasticsearch.sln"
44
$test = "test\\Serilog.Sinks.Elasticsearch.Tests\\Serilog.Sinks.Elasticsearch.Tests.csproj"
5-
$projectFolder = "src\\Serilog.Sinks.Elasticsearch"
6-
$project = $projectFolder + "\\Serilog.Sinks.Elasticsearch.csproj"
5+
[string[]]$projects = @(
6+
("src\\Serilog.Sinks.Elasticsearch\\Serilog.Sinks.Elasticsearch.csproj"),
7+
("src\\Serilog.Formatting.Elasticsearch\\Serilog.Formatting.Elasticsearch.csproj")
8+
)
79

810
function Invoke-Build()
911
{
@@ -22,7 +24,10 @@ function Invoke-Build()
2224
}
2325

2426
Write-Output "Creating packages"
25-
& dotnet pack $project -c Release -o ..\..\artifacts --include-symbols --include-source /p:PackageVersion=$env:GitVersion_NuGetVersionV2
27+
foreach ($project in $projects)
28+
{
29+
& dotnet pack $project -c Release -o ..\..\artifacts --include-symbols --include-source /p:PackageVersion=$env:GitVersion_NuGetVersionV2
30+
}
2631

2732
if($LASTEXITCODE -ne 0)
2833
{

0 commit comments

Comments
 (0)