2021-05-21 18:32:25 +00:00
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
using Microsoft.Extensions.Hosting;
|
2022-04-25 03:20:35 +00:00
|
|
|
using System.IO;
|
|
|
|
using System;
|
|
|
|
using System.Reflection;
|
2021-05-21 18:32:25 +00:00
|
|
|
|
2021-07-13 05:35:31 +00:00
|
|
|
namespace Props
|
2021-05-21 18:32:25 +00:00
|
|
|
{
|
|
|
|
public class Program
|
|
|
|
{
|
|
|
|
public static void Main(string[] args)
|
|
|
|
{
|
|
|
|
CreateHostBuilder(args).Build().Run();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
|
|
|
Host.CreateDefaultBuilder(args)
|
|
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
|
|
|
{
|
2022-04-25 03:20:35 +00:00
|
|
|
webBuilder.UseWebRoot(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "wwwroot/")).UseStartup<Startup>();
|
2021-05-21 18:32:25 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|