fix: dev-start.ps1 ErrorActionPreference auf Continue setzen (dotnet stderr Warnungen kein Fehler)
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
startet Backend und Frontend in separaten Fenstern.
|
startet Backend und Frontend in separaten Fenstern.
|
||||||
#>
|
#>
|
||||||
|
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Continue"
|
||||||
$Root = "D:\001_Projekte\IT_Tool"
|
$Root = "D:\001_Projekte\IT_Tool"
|
||||||
|
|
||||||
function Write-Step { param($msg) Write-Host "" ; Write-Host "==> $msg" -ForegroundColor Cyan }
|
function Write-Step { param($msg) Write-Host "" ; Write-Host "==> $msg" -ForegroundColor Cyan }
|
||||||
@@ -97,7 +97,7 @@ Write-Step "Fuehre Datenbank-Migrationen aus..."
|
|||||||
|
|
||||||
Set-Location "$Root\Backend"
|
Set-Location "$Root\Backend"
|
||||||
|
|
||||||
$efResult = dotnet ef database update --project "src\NexusRMM.Infrastructure" --startup-project "src\NexusRMM.Api" --no-build 2>&1
|
dotnet ef database update --project "src\NexusRMM.Infrastructure" --startup-project "src\NexusRMM.Api" --no-build 2>&1 | Out-Default
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
Write-Warn "Migration mit --no-build fehlgeschlagen. Baue zuerst..."
|
Write-Warn "Migration mit --no-build fehlgeschlagen. Baue zuerst..."
|
||||||
dotnet build "src\NexusRMM.Api" --configuration Debug -q
|
dotnet build "src\NexusRMM.Api" --configuration Debug -q
|
||||||
|
|||||||
Reference in New Issue
Block a user