mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-09 21:24:55 +00:00
23 lines
636 B
C#
23 lines
636 B
C#
using Microsoft.AspNetCore;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using System;
|
|
|
|
namespace ElectronNET.WebApp
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
BuildWebHost(args).Run();
|
|
}
|
|
|
|
// WICHTIG! UseContentRoot auf Assembly Ordner Essentiell!
|
|
// Ggf. kann man via Parameter den Content Root durchreichen?
|
|
public static IWebHost BuildWebHost(string[] args) =>
|
|
WebHost.CreateDefaultBuilder(args)
|
|
.UseContentRoot(AppDomain.CurrentDomain.BaseDirectory)
|
|
.UseStartup<Startup>()
|
|
.Build();
|
|
}
|
|
}
|