718087309c
moved buildscripts to application added publish profile
29 lines
721 B
C#
29 lines
721 B
C#
using System.IO;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using SharedLibraryCore.Interfaces;
|
|
|
|
namespace WebfrontCore
|
|
{
|
|
public class Program
|
|
{
|
|
public static IManager Manager;
|
|
|
|
public static void Init(IManager mgr)
|
|
{
|
|
Manager = mgr;
|
|
BuildWebHost().Run();
|
|
}
|
|
|
|
public static IWebHost BuildWebHost() =>
|
|
new WebHostBuilder()
|
|
#if DEBUG
|
|
.UseContentRoot(Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), @"..\..\..\..\", "WebfrontCore")))
|
|
#else
|
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
|
#endif
|
|
.UseKestrel()
|
|
.UseStartup<Startup>()
|
|
.Build();
|
|
}
|
|
}
|