WebRootPath
This commit is contained in:
@@ -25,9 +25,13 @@ using Webshop.Infrastructure.Data;
|
||||
using Webshop.Infrastructure.Repositories;
|
||||
using Webshop.Infrastructure.Services;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.WebHost.UseWebRoot("wwwroot");
|
||||
var options = new WebApplicationOptions
|
||||
{
|
||||
Args = args,
|
||||
// Diese Zeile setzt den WebRootPath explizit auf den wwwroot-Ordner.
|
||||
WebRootPath = "wwwroot"
|
||||
};
|
||||
var builder = WebApplication.CreateBuilder(options);
|
||||
|
||||
// --- 1. Dependency Injection Konfiguration ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user