Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:

Scott Sauber scottsauber

:shipit:
View GitHub Profile
@natemcmaster
natemcmaster / README.md
Last active July 2, 2020 19:09
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)