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); }