You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
836 B
22 lines
836 B
. "./build-aspnetcore-common.ps1"
|
|
|
|
# Build all solutions
|
|
foreach ($service in $serviceArray) {
|
|
$copyFromConfig = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($rootFolder + $service.ConfigPath + $service.ConfigFile)
|
|
if (Test-Path $copyFromConfig)
|
|
{
|
|
$copyToConfig = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($service.Path + $service.ConfigFile)
|
|
$configExists = Test-Path $copyToConfig
|
|
if ($configExists -eq $false) {
|
|
Write-host ""
|
|
Write-host "Coping appsettings.Development.json ..." -ForegroundColor red -BackgroundColor yellow
|
|
Write-host ""
|
|
Copy-Item $copyFromConfig $copyToConfig
|
|
}
|
|
}
|
|
|
|
Set-Location $service.Path
|
|
dotnet build --no-cache
|
|
}
|
|
|
|
Set-Location $rootFolder
|