From 52b64268836a99b0502c0448de38f3500048de3f Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Tue, 17 Jun 2025 21:09:52 -0700 Subject: [PATCH] Complete the non-docker debug builds --- .vscode/launch.json | 4 ++-- .vscode/tasks.json | 4 ++-- src/MistoxWebsite.Client/angular.json | 2 +- src/MistoxWebsite.Server/Program.cs | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 8ff96e9..a1fb448 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,9 +6,9 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build-all", - "program": "${workspaceFolder}/debug/MistoxWebsite.Server.dll", + "program": "MistoxWebsite.Server.dll", "args": [], - "cwd": "${workspaceFolder}", + "cwd": "${workspaceFolder}/debug/", "stopAtEntry": false, "serverReadyAction": { "action": "openExternally", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 5e0a8d9..15db470 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -18,7 +18,7 @@ "command": "ng", "type": "process", "options": { - "cwd": "${workspaceFolder}/debug/wwwroot" + "cwd": "${workspaceFolder}/src/MistoxWebsite.Client" }, "args": [ "build" @@ -27,7 +27,7 @@ }, { "label": "build-all", - "dependsOn": ["server-build", "client-build" ], + "dependsOn": ["client-build", "server-build" ], "dependsOrder": "sequence" } ] diff --git a/src/MistoxWebsite.Client/angular.json b/src/MistoxWebsite.Client/angular.json index 033687c..bf33e66 100644 --- a/src/MistoxWebsite.Client/angular.json +++ b/src/MistoxWebsite.Client/angular.json @@ -28,7 +28,7 @@ "aot": true, "outputMode": "static", "outputPath": { - "base": "../MistoxWebsite.Server/wwwroot", + "base": "../../debug/wwwroot", "browser": "" }, "deleteOutputPath": false diff --git a/src/MistoxWebsite.Server/Program.cs b/src/MistoxWebsite.Server/Program.cs index 2075e85..add3916 100755 --- a/src/MistoxWebsite.Server/Program.cs +++ b/src/MistoxWebsite.Server/Program.cs @@ -63,17 +63,17 @@ builder.Services.AddRazorPages(); var app = builder.Build(); // Configure the HTTP request pipeline. -if( app.Environment.IsDevelopment() ) { - app.UseWebAssemblyDebugging(); -} else { +if( !app.Environment.IsDevelopment() ) { app.UseHsts(); } -app.UseBlazorFrameworkFiles(); +app.UseDefaultFiles(); app.UseStaticFiles(); app.UseCors(); +app.UseRouting(); + app.UseAuthentication(); app.MapControllers();