File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22(
33 [Parameter ()]
44 [ValidateSet (' Debug' , ' Release' )]
5- [string ]$Configuration = ' Debug'
5+ [string ]$Configuration = ' Debug' ,
6+
7+ [Parameter ()]
8+ [boolean ]$SelfContained = $true
69)
710
811$ErrorActionPreference = ' Stop'
912
1013$currentDirectory = $PSScriptRoot
1114$scriptPath = Join-Path $currentDirectory ' Build-Docker.ps1'
1215
13- & $scriptPath - AppName ' Dibix.Worker.Host'
16+ & $scriptPath - AppName ' Dibix.Worker.Host' - Configuration $Configuration - SelfContained $SelfContained
Original file line number Diff line number Diff line change 22(
33 [Parameter ()]
44 [ValidateSet (' Debug' , ' Release' )]
5- [string ]$Configuration = ' Debug'
5+ [string ]$Configuration = ' Debug' ,
6+
7+ [Parameter ()]
8+ [boolean ]$SelfContained = $true
69)
710
811$ErrorActionPreference = ' Stop'
912
1013$currentDirectory = $PSScriptRoot
1114$scriptPath = Join-Path $currentDirectory ' Build-Host.ps1'
1215
13- & $scriptPath - AppName ' Dibix.Http.Host' - Configuration $Configuration
16+ & $scriptPath - AppName ' Dibix.Http.Host' - Configuration $Configuration - SelfContained $SelfContained
Original file line number Diff line number Diff line change 66
77 [Parameter ()]
88 [ValidateSet (' Debug' , ' Release' )]
9- [string ]$Configuration = ' Debug'
9+ [string ]$Configuration = ' Debug' ,
10+
11+ [Parameter ()]
12+ [boolean ]$SelfContained = $true
1013)
1114
1215$ErrorActionPreference = ' Stop'
2730{
2831 Exec " dotnet publish --configuration $Configuration
2932 --runtime $runtimeIdentifier
30- --self-contained
33+ $ ( if ( $SelfContained ) { " --self-contained" } else { " --no-self-contained " } )
3134 --p:IgnoreProjectGuid=True
3235 --p:PublishReadyToRun=$publishReadyToRun
3336 --p:PublishSingleFile=$publishSingleFile
You can’t perform that action at this time.
0 commit comments