Skip to content

Instantly share code, notes, and snippets.

@corespider
Created June 8, 2020 07:47
Show Gist options
  • Save corespider/f89a2a1dcd441f803b58cb75268606a5 to your computer and use it in GitHub Desktop.
Save corespider/f89a2a1dcd441f803b58cb75268606a5 to your computer and use it in GitHub Desktop.
CoreSpider - How to rename wwwroot folder name in ASP.NET Core
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseWebRoot("myCustomRoot")
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
host.Run();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment