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