diff --git a/AspNetCore/Angular/AdHocReporting/AdHocReporting.Server/AdHocReporting.Server.csproj b/AspNetCore/Angular/AdHocReporting/AdHocReporting.Server/AdHocReporting.Server.csproj index d95529e9..156b5867 100644 --- a/AspNetCore/Angular/AdHocReporting/AdHocReporting.Server/AdHocReporting.Server.csproj +++ b/AspNetCore/Angular/AdHocReporting/AdHocReporting.Server/AdHocReporting.Server.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 enable enable @@ -22,11 +22,11 @@ - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/AspNetCore/Angular/AdvancedSearch/EqDemo.Angular.AdvancedSearch.csproj b/AspNetCore/Angular/AdvancedSearch/EqDemo.Angular.AdvancedSearch.csproj index a2838f4c..5a05b007 100644 --- a/AspNetCore/Angular/AdvancedSearch/EqDemo.Angular.AdvancedSearch.csproj +++ b/AspNetCore/Angular/AdvancedSearch/EqDemo.Angular.AdvancedSearch.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 disable false ClientApp\ @@ -13,10 +13,10 @@ - - - - + + + + @@ -36,7 +36,7 @@ - + diff --git a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/EqDemo.BlazorWasm.AdhocReporting.Client.csproj b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/EqDemo.BlazorWasm.AdhocReporting.Client.csproj index 757d9614..d8c82c65 100644 --- a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/EqDemo.BlazorWasm.AdhocReporting.Client.csproj +++ b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/EqDemo.BlazorWasm.AdhocReporting.Client.csproj @@ -1,18 +1,18 @@  - net6.0 + net9.0 EqDemo.Client enable enable - - - - - + + + + + diff --git a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/Program.cs b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/Program.cs index ba141b48..e1c9d3ca 100644 --- a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/Program.cs +++ b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Client/Program.cs @@ -14,6 +14,6 @@ // Supply HttpClient instances that include access tokens when making requests to the server project builder.Services.AddScoped(sp => sp.GetRequiredService().CreateClient("EqDemo.BlazorWasm.AdhocReporting.ServerAPI")); -builder.Services.AddApiAuthorization(); +builder.Services.AddAuthorizationCore(); await builder.Build().RunAsync(); diff --git a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Controllers/OidcConfigurationController.cs b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Controllers/OidcConfigurationController.cs index 07da33dc..e5fbab2f 100644 --- a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Controllers/OidcConfigurationController.cs +++ b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Controllers/OidcConfigurationController.cs @@ -1,25 +1,22 @@ -using Microsoft.AspNetCore.ApiAuthorization.IdentityServer; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; namespace EqDemo.Controllers { public class OidcConfigurationController : Controller { private readonly ILogger _logger; + private readonly IConfiguration _configuration; - public OidcConfigurationController(IClientRequestParametersProvider clientRequestParametersProvider, ILogger logger) + public OidcConfigurationController(IConfiguration configuration, ILogger logger) { - ClientRequestParametersProvider = clientRequestParametersProvider; + _configuration = configuration; _logger = logger; } - public IClientRequestParametersProvider ClientRequestParametersProvider { get; } - [HttpGet("_configuration/{clientId}")] public IActionResult GetClientRequestParameters([FromRoute] string clientId) { - var parameters = ClientRequestParametersProvider.GetClientParameters(HttpContext, clientId); - return Ok(parameters); + return Ok(new Dictionary()); } } -} \ No newline at end of file +} diff --git a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Data/AppDbContext.cs b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Data/AppDbContext.cs index 6f103610..15a59fe2 100644 --- a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Data/AppDbContext.cs +++ b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Data/AppDbContext.cs @@ -1,18 +1,14 @@ -using Microsoft.AspNetCore.ApiAuthorization.IdentityServer; +using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -using Microsoft.Extensions.Options; - -using Duende.IdentityServer.EntityFramework.Options; using EqDemo.Models; namespace EqDemo.Data { - public class AppDbContext : ApiAuthorizationDbContext + public class AppDbContext : IdentityDbContext { public AppDbContext( - DbContextOptions options, - IOptions operationalStoreOptions) : base(options, operationalStoreOptions) + DbContextOptions options) : base(options) { } diff --git a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/EqDemo.BlazorWasm.AdhocReporting.Server.csproj b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/EqDemo.BlazorWasm.AdhocReporting.Server.csproj index 79054182..c08be382 100644 --- a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/EqDemo.BlazorWasm.AdhocReporting.Server.csproj +++ b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/EqDemo.BlazorWasm.AdhocReporting.Server.csproj @@ -1,20 +1,18 @@ - net6.0 + net9.0 disable enable EqDemo.BlazorWasm.AdhocReporting.Server EqDemo.Server - - - - - + + + - - + + @@ -23,14 +21,12 @@ - - - - - - - - + + + + + + @@ -48,4 +44,4 @@ - \ No newline at end of file + diff --git a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Program.cs b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Program.cs index 4a2636a4..184a63c9 100644 --- a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Program.cs +++ b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Server/Program.cs @@ -1,5 +1,3 @@ -using System.IdentityModel.Tokens.Jwt; -using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; @@ -29,18 +27,7 @@ .AddRoles() .AddEntityFrameworkStores(); -builder.Services.AddIdentityServer() - .AddApiAuthorization(options => { - //the following 2 lines are necessary to support roles on the WebAssembly side - options.IdentityResources["openid"].UserClaims.Add("role"); - options.ApiResources.Single().UserClaims.Add("role"); - }); - -// We need to do this as it maps "role" to ClaimTypes.Role and causes issues -JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Remove("role"); - -builder.Services.AddAuthentication() - .AddIdentityServerJwt(); +builder.Services.AddAuthentication(); //EasyQuery services builder.Services.AddEasyQuery() @@ -79,7 +66,6 @@ app.UseRouting(); -app.UseIdentityServer(); app.UseAuthentication(); app.UseAuthorization(); diff --git a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Shared/EqDemo.BlazorWasm.AdhocReporting.Shared.csproj b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Shared/EqDemo.BlazorWasm.AdhocReporting.Shared.csproj index a5b78ac4..46f7f7db 100644 --- a/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Shared/EqDemo.BlazorWasm.AdhocReporting.Shared.csproj +++ b/AspNetCore/Blazor/AdHocReporting.BlazorWasm/Shared/EqDemo.BlazorWasm.AdhocReporting.Shared.csproj @@ -1,7 +1,7 @@ - net6.0 + net9.0 enable enable diff --git a/AspNetCore/Blazor/AdvancedSearch.BlazorServer/EqDemo.BlazorServer.AdvancedSearch.csproj b/AspNetCore/Blazor/AdvancedSearch.BlazorServer/EqDemo.BlazorServer.AdvancedSearch.csproj index 41ec6ca4..01015f4e 100644 --- a/AspNetCore/Blazor/AdvancedSearch.BlazorServer/EqDemo.BlazorServer.AdvancedSearch.csproj +++ b/AspNetCore/Blazor/AdvancedSearch.BlazorServer/EqDemo.BlazorServer.AdvancedSearch.csproj @@ -1,6 +1,6 @@ - net6.0 + net9.0 disable enable EqDemo @@ -8,10 +8,10 @@ - - - - + + + + @@ -28,10 +28,10 @@ - + - - + + diff --git a/AspNetCore/Razor-Mvc/Mvc.DataFiltering/EqDemo.AspNetCoreMvc.DataFiltering.csproj b/AspNetCore/Razor-Mvc/Mvc.DataFiltering/EqDemo.AspNetCoreMvc.DataFiltering.csproj index 05d7e52d..73d56fdb 100644 --- a/AspNetCore/Razor-Mvc/Mvc.DataFiltering/EqDemo.AspNetCoreMvc.DataFiltering.csproj +++ b/AspNetCore/Razor-Mvc/Mvc.DataFiltering/EqDemo.AspNetCoreMvc.DataFiltering.csproj @@ -1,14 +1,14 @@ - net8.0 + net9.0 enable EqDemo.AspNetCoreMvc.DataFiltering - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/AspNetCore/Razor-Mvc/Razor.AdHocReporting/EqDemo.AspNetCoreRazor.AdhocReporting.csproj b/AspNetCore/Razor-Mvc/Razor.AdHocReporting/EqDemo.AspNetCoreRazor.AdhocReporting.csproj index 37816822..c93d2364 100644 --- a/AspNetCore/Razor-Mvc/Razor.AdHocReporting/EqDemo.AspNetCoreRazor.AdhocReporting.csproj +++ b/AspNetCore/Razor-Mvc/Razor.AdHocReporting/EqDemo.AspNetCoreRazor.AdhocReporting.csproj @@ -1,20 +1,20 @@ - net8.0 + net9.0 enable EqDemo EqDemo.AspNetCoreRazor.AdhocReporting true - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/AspNetCore/Razor-Mvc/Razor.AdvancedSearch/EqDemo.AspNetCoreRazor.AdvancedSearch.csproj b/AspNetCore/Razor-Mvc/Razor.AdvancedSearch/EqDemo.AspNetCoreRazor.AdvancedSearch.csproj index 673f8da2..5f6de35c 100644 --- a/AspNetCore/Razor-Mvc/Razor.AdvancedSearch/EqDemo.AspNetCoreRazor.AdvancedSearch.csproj +++ b/AspNetCore/Razor-Mvc/Razor.AdvancedSearch/EqDemo.AspNetCoreRazor.AdvancedSearch.csproj @@ -1,16 +1,16 @@ - net8.0 + net9.0 EqDemo.AspNetCoreRazor.AdvancedSearch true True - - - - - + + + + + diff --git a/AspNetCore/Razor-Mvc/Razor.DataFiltering/EqDemo.AspNetCoreRazor.DataFiltering.csproj b/AspNetCore/Razor-Mvc/Razor.DataFiltering/EqDemo.AspNetCoreRazor.DataFiltering.csproj index 1ce96d7b..69b93a3a 100644 --- a/AspNetCore/Razor-Mvc/Razor.DataFiltering/EqDemo.AspNetCoreRazor.DataFiltering.csproj +++ b/AspNetCore/Razor-Mvc/Razor.DataFiltering/EqDemo.AspNetCoreRazor.DataFiltering.csproj @@ -1,13 +1,13 @@ - net8.0 + net9.0 enable EqDemo.AspNetCoreRazor.DataFiltering - - - + + + diff --git a/AspNetCore/Razor-Mvc/RazorTypeScript.AdHocReporting/EqDemo.AspNetCoreRazorTypeScript.AdhocReporting.csproj b/AspNetCore/Razor-Mvc/RazorTypeScript.AdHocReporting/EqDemo.AspNetCoreRazorTypeScript.AdhocReporting.csproj index d44fa776..8d65edd7 100644 --- a/AspNetCore/Razor-Mvc/RazorTypeScript.AdHocReporting/EqDemo.AspNetCoreRazorTypeScript.AdhocReporting.csproj +++ b/AspNetCore/Razor-Mvc/RazorTypeScript.AdHocReporting/EqDemo.AspNetCoreRazorTypeScript.AdhocReporting.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 enable EqDemo EqDemo.AspNetCoreRazor.AdhocReporting @@ -10,12 +10,12 @@ - - - - - - + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/AspNetCore/React/AdvancedSearch/EqDemo.AspNetCoreReact.AdvancedSearch.csproj b/AspNetCore/React/AdvancedSearch/EqDemo.AspNetCoreReact.AdvancedSearch.csproj index 40bb9e61..cce248cf 100644 --- a/AspNetCore/React/AdvancedSearch/EqDemo.AspNetCoreReact.AdvancedSearch.csproj +++ b/AspNetCore/React/AdvancedSearch/EqDemo.AspNetCoreReact.AdvancedSearch.csproj @@ -1,69 +1,68 @@ - - - net6.0 - true - Latest - false - ClientApp\ - $(DefaultItemExcludes);$(SpaRoot)node_modules\** - EqDemo.AspNetCoreReact.AdvancedSearch - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %(DistFiles.Identity) - PreserveNewest - - - - \ No newline at end of file + + + net9.0 + true + Latest + false + ClientApp\ + $(DefaultItemExcludes);$(SpaRoot)node_modules\** + EqDemo.AspNetCoreReact.AdvancedSearch + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + %(DistFiles.Identity) + PreserveNewest + + + + diff --git a/AspNetCore/React/AdvancedSearch/Startup.cs b/AspNetCore/React/AdvancedSearch/Startup.cs index 6ea66069..187a3504 100644 --- a/AspNetCore/React/AdvancedSearch/Startup.cs +++ b/AspNetCore/React/AdvancedSearch/Startup.cs @@ -1,8 +1,5 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.HttpsPolicy; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.SpaServices.ReactDevelopmentServer; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.DependencyInjection; @@ -43,12 +40,6 @@ public void ConfigureServices(IServiceCollection services) services.AddControllersWithViews(); - // In production, the React files will be served from this directory - services.AddSpaStaticFiles(configuration => - { - configuration.RootPath = "ClientApp/build"; - }); - services.AddEasyQuery() .UseSqlManager() .AddDefaultExporters() @@ -79,9 +70,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseHttpsRedirection(); app.UseStaticFiles(); - if (!env.IsDevelopment()) { - app.UseSpaStaticFiles(); - } app.UseRouting(); @@ -103,15 +91,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) endpoints.MapControllerRoute( name: "default", pattern: "{controller}/{action=Index}/{id?}"); - }); - - app.UseSpa(spa => - { - spa.Options.SourcePath = "ClientApp"; - if (env.IsDevelopment()) { - spa.UseReactDevelopmentServer(npmScript: "start"); - } + endpoints.MapFallbackToFile("index.html"); }); //Init demo database (if necessary) diff --git a/AspNetCore/Stencil/AdvancedSearch/EqDemo.AspNetCoreStencil.AdvancedSearch.csproj b/AspNetCore/Stencil/AdvancedSearch/EqDemo.AspNetCoreStencil.AdvancedSearch.csproj index 8ea48d12..741b2d05 100644 --- a/AspNetCore/Stencil/AdvancedSearch/EqDemo.AspNetCoreStencil.AdvancedSearch.csproj +++ b/AspNetCore/Stencil/AdvancedSearch/EqDemo.AspNetCoreStencil.AdvancedSearch.csproj @@ -1,72 +1,70 @@ - - - net6.0 - true - Latest - false - ClientApp\ - $(DefaultItemExcludes);$(SpaRoot)node_modules\** - EqDemo.AspNetCoreStencil.AdvancedSearch - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %(DistFiles.Identity) - PreserveNewest - true - - - - \ No newline at end of file + + + net9.0 + true + Latest + false + ClientApp\ + $(DefaultItemExcludes);$(SpaRoot)node_modules\** + EqDemo.AspNetCoreStencil.AdvancedSearch + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + %(DistFiles.Identity) + PreserveNewest + true + + + + diff --git a/AspNetCore/Stencil/AdvancedSearch/Startup.cs b/AspNetCore/Stencil/AdvancedSearch/Startup.cs index 3cf95eb8..90cb0ffc 100644 --- a/AspNetCore/Stencil/AdvancedSearch/Startup.cs +++ b/AspNetCore/Stencil/AdvancedSearch/Startup.cs @@ -51,11 +51,6 @@ public void ConfigureServices(IServiceCollection services) // .RegisterDbGate(); // .RegisterDbGate(); - services.AddSpaStaticFiles(configuration => - { - configuration.RootPath = "ClientApp/www"; - }); - //to support non-Unicode code pages in PDF Exporter System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance); } @@ -76,7 +71,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseHttpsRedirection(); app.UseStaticFiles(); - app.UseSpaStaticFiles(); app.UseCors("AllowAllPolicy"); @@ -108,15 +102,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) endpoints.MapControllerRoute( name: "default", pattern: "{controller}/{action=Index}/{id?}"); - }); - - app.UseSpa(spa => - { - spa.Options.SourcePath = "ClientApp"; - if (env.IsDevelopment()) { - spa.UseProxyToSpaDevelopmentServer("http://localhost:4444/"); - } + endpoints.MapFallbackToFile("index.html"); }); //Init demo database (if necessary) diff --git a/AspNetCore/Vue2/AdvancedSearch/EqDemo.AspNetCoreVue2.AdvancedSearch.csproj b/AspNetCore/Vue2/AdvancedSearch/EqDemo.AspNetCoreVue2.AdvancedSearch.csproj index b84cd155..90cf8f23 100644 --- a/AspNetCore/Vue2/AdvancedSearch/EqDemo.AspNetCoreVue2.AdvancedSearch.csproj +++ b/AspNetCore/Vue2/AdvancedSearch/EqDemo.AspNetCoreVue2.AdvancedSearch.csproj @@ -1,6 +1,6 @@ - net6.0 + net9.0 3.0 ClientApp\ $(DefaultItemExcludes);$(SpaRoot)node_modules\** @@ -10,16 +10,14 @@ - - - - - + + + + + - - - + @@ -65,4 +63,4 @@ - \ No newline at end of file + diff --git a/AspNetCore/Vue2/AdvancedSearch/Startup.cs b/AspNetCore/Vue2/AdvancedSearch/Startup.cs index e1fcb214..39a1f31e 100644 --- a/AspNetCore/Vue2/AdvancedSearch/Startup.cs +++ b/AspNetCore/Vue2/AdvancedSearch/Startup.cs @@ -7,8 +7,6 @@ using Microsoft.Extensions.Hosting; using Microsoft.EntityFrameworkCore; -using VueCliMiddleware; - using Korzh.EasyQuery.Services; using EasyData.Export; @@ -44,12 +42,6 @@ public void ConfigureServices(IServiceCollection services) services.AddControllersWithViews(); - // In production, the React files will be served from this directory - services.AddSpaStaticFiles(configuration => - { - configuration.RootPath = "ClientApp/dist"; - }); - services.AddEasyQuery() .UseSqlManager() .AddDefaultExporters() @@ -78,9 +70,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseHttpsRedirection(); app.UseStaticFiles(); - if (!env.IsDevelopment()) { - app.UseSpaStaticFiles(); - } app.UseRouting(); @@ -103,24 +92,10 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) endpoints.MapControllerRoute( name: "default", pattern: "{controller}/{action=Index}/{id?}"); - }); - 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: "serve", port: 8085, regex: "Compiled "); - // 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:8080"); // your Vue app port - } + endpoints.MapFallbackToFile("index.html"); }); - //Init demo database (if necessary) app.EnsureDbInitialized(Configuration, env); } diff --git a/AspNetCore/Vue3/AdvancedSearch.Server/AdvancedSearch.Server.csproj b/AspNetCore/Vue3/AdvancedSearch.Server/AdvancedSearch.Server.csproj index 4bd2b439..b7800d72 100644 --- a/AspNetCore/Vue3/AdvancedSearch.Server/AdvancedSearch.Server.csproj +++ b/AspNetCore/Vue3/AdvancedSearch.Server/AdvancedSearch.Server.csproj @@ -1,6 +1,6 @@ - net6.0 + net9.0 enable enable ..\AdvancedSearch.Client @@ -13,17 +13,14 @@ - - 6.*-* - + - - - + + @@ -42,4 +39,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..b9a578e1 100644 --- a/AspNetCore/Vue3/AdvancedSearch.Server/Startup.cs +++ b/AspNetCore/Vue3/AdvancedSearch.Server/Startup.cs @@ -7,8 +7,6 @@ using Microsoft.Extensions.Hosting; using Microsoft.EntityFrameworkCore; -//using VueCliMiddleware; - using Korzh.EasyQuery.Services; using EasyData.Export; using Korzh.EasyQuery.Db; @@ -75,9 +73,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseHttpsRedirection(); app.UseStaticFiles(); - //if (!env.IsDevelopment()) { - // app.UseSpaStaticFiles(); - //} + app.UseRouting(); @@ -108,20 +104,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);