From 0af8c477e7d81e2710ea56075abb98e283f4d815 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 5 May 2026 14:30:10 +0000 Subject: [PATCH] Upgrade Vue3/AdvancedSearch.Server to .NET 8 - Bump TFM to net8.0 - Bump Microsoft.EntityFrameworkCore.Sqlite/SqlServer to 8.0.26 - Bump Microsoft.AspNetCore.SpaProxy to 8.0.26 - Remove Microsoft.AspNetCore.SpaServices.Extensions (deprecated in .NET 8); SpaProxy MSBuild props remain for dev-time proxy - Remove Newtonsoft.Json (no source usages; System.Text.Json from BCL covers any future needs) - Remove System.Data.SqlClient, System.Net.Http, System.Text.RegularExpressions (provided by .NET 8 BCL) - Remove dead UseSpa/UseSpaStaticFiles commented blocks in Startup.cs that referenced deprecated SpaServices.Extensions APIs Co-Authored-By: Toby Drinkall --- .../AdvancedSearch.Server.csproj | 19 +++++------------- .../Vue3/AdvancedSearch.Server/Startup.cs | 20 +------------------ 2 files changed, 6 insertions(+), 33 deletions(-) diff --git a/AspNetCore/Vue3/AdvancedSearch.Server/AdvancedSearch.Server.csproj b/AspNetCore/Vue3/AdvancedSearch.Server/AdvancedSearch.Server.csproj index 4bd2b439..ae004d2a 100644 --- a/AspNetCore/Vue3/AdvancedSearch.Server/AdvancedSearch.Server.csproj +++ b/AspNetCore/Vue3/AdvancedSearch.Server/AdvancedSearch.Server.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable ..\AdvancedSearch.Client @@ -13,18 +13,9 @@ - - 6.*-* - - - - - - - - - - + + + @@ -42,4 +33,4 @@ - \ No newline at end of file + diff --git a/AspNetCore/Vue3/AdvancedSearch.Server/Startup.cs b/AspNetCore/Vue3/AdvancedSearch.Server/Startup.cs index 236d8258..e6492c66 100644 --- a/AspNetCore/Vue3/AdvancedSearch.Server/Startup.cs +++ b/AspNetCore/Vue3/AdvancedSearch.Server/Startup.cs @@ -75,10 +75,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseHttpsRedirection(); app.UseStaticFiles(); - //if (!env.IsDevelopment()) { - // app.UseSpaStaticFiles(); - //} - + app.UseRouting(); app.UseEndpoints(endpoints => @@ -108,21 +105,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) endpoints.MapControllers(); }); - //app.UseSpa(spa => { - - // spa.Options.SourcePath = "ClientApp"; - // spa.Options.StartupTimeout = TimeSpan.FromMinutes(2); - - // if (env.IsDevelopment()) { - // // run npm process with client app - // spa.UseVueCli(npmScript: "dev", port: 8086, regex: "vite"); - // // if you just prefer to proxy requests from client app, use proxy to SPA dev server instead: - // // app should be already running before starting a .NET client - // spa.UseProxyToSpaDevelopmentServer("http://localhost:8086"); // your Vue app port - // } - //}); - - //Init demo database (if necessary) app.EnsureDbInitialized(Configuration, env); }