this file is not checked in and can be used to overwrite any custom settings that are in the repo without worrying about accidentally checking in developer settings as you work.
28 lines
889 B
C#
28 lines
889 B
C#
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>());
|
|
}
|
|
}
|