Skip to content

Commit 0159d8f

Browse files
committed
2 parents dd6189f + 8bc10ef commit 0159d8f

3 files changed

Lines changed: 26 additions & 86 deletions

File tree

CLI-Windows/build-bits-expanded.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2+
#########################################################################################################
3+
# This "expanded Script" can be used when debugging issues when building the .NET Core bits
4+
# as it is easier to follow and debug than when using a loop (like in the optimized build-bits.ps1)
5+
#########################################################################################################
6+
17
Param([string] $rootPath)
28
$scriptPath = Split-Path $script:MyInvocation.MyCommand.Path
39

CLI-Windows/build-bits-simple.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This approach still has issues, but would be the simplest approach for this script
2+
# See: https://github.com/dotnet/eShopOnContainers/issues/74
3+
4+
Param([string] $rootPath)
5+
$scriptPath = Split-Path $script:MyInvocation.MyCommand.Path
6+
7+
Write-Host "Current script directory is $scriptPath" -ForegroundColor Yellow
8+
9+
if ([string]::IsNullOrEmpty($rootPath)) {
10+
$rootPath = "$scriptPath\.."
11+
}
12+
Write-Host "Root path used is $rootPath" -ForegroundColor Yellow
13+
14+
15+
$SolutionFilePath = $rootPath + "eShopOnContainers-ServicesAndWebApps.sln"
16+
17+
dotnet restore $SolutionFilePath
18+
19+
dotnet publish $SolutionFilePath -c Release -o .\obj\Docker\publish
20+

README.md.saved.bak

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)