Skip to content

Instantly share code, notes, and snippets.

@CoreProgramm
Created April 27, 2020 13:39
Show Gist options
  • Save CoreProgramm/fef4bc737557f544ee4b6bc2b4c77b15 to your computer and use it in GitHub Desktop.
Save CoreProgramm/fef4bc737557f544ee4b6bc2b4c77b15 to your computer and use it in GitHub Desktop.
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