Renaming folder, project, solutions + changing .gitignore (there were old references to Umbraco.Web.UI)
This commit is contained in:
27
src/Umbraco.Web.UI/Program.cs
Normal file
27
src/Umbraco.Web.UI/Program.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Umbraco.Cms.Web.UI.NetCore
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
=> CreateHostBuilder(args)
|
||||
.Build()
|
||||
.Run();
|
||||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
Host.CreateDefaultBuilder(args)
|
||||
#if DEBUG
|
||||
.ConfigureAppConfiguration(config
|
||||
=> config.AddJsonFile(
|
||||
"appsettings.Local.json",
|
||||
optional: true,
|
||||
reloadOnChange: true))
|
||||
#endif
|
||||
.ConfigureLogging(x => x.ClearProviders())
|
||||
.ConfigureWebHostDefaults(webBuilder => webBuilder.UseStartup<Startup>());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user