Created
July 2, 2021 20:17
-
-
Save crgrieve/b9f9ffde937cb70595cb2ee4dd634059 to your computer and use it in GitHub Desktop.
An example Program.cs for Umbraco v9 project with usings refactored to a global file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DotNet6Umbraco | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
=> CreateHostBuilder(args) | |
.Build() | |
.Run(); | |
public static IHostBuilder CreateHostBuilder(string[] args) => | |
Host.CreateDefaultBuilder(args) | |
.ConfigureLogging(x => x.ClearProviders()) | |
.ConfigureWebHostDefaults(webBuilder => webBuilder.UseStartup<Startup>()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment