Skip to content

Instantly share code, notes, and snippets.

View scottsauber's full-sized avatar
:shipit:

Scott Sauber scottsauber

:shipit:
View GitHub Profile
@natemcmaster
natemcmaster / README.md
Last active August 4, 2023 07:59
ContentRoot, WebRoot, BaseDirectory, and CurrentDirectory
View README.md

Assuming you use template defaults

public static void Main()
{
  var host = new WebHostBuilder()
                .UseContentRoot(Directory.GetCurrentDirectory())
                .Build();
}

public Startup(IHostingEnvironment env)