File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
17Param ([string ] $rootPath )
28$scriptPath = Split-Path $script :MyInvocation.MyCommand.Path
39
Original file line number Diff line number Diff line change 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+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments