.AddCommandLine(args)
.AddEnvironmentVariables(prefix: "ASPNETCORE_")
.Build();
var host = new WebHostBuilder()
.UseConfiguration(config)
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup
.Build();
host.Run();
Hello,
I am new learner in asp.net.Can you please explain line by line code.What is the purpose of each and every line of the code.
Specially I need a details discussion on configuration setting
var config = new ConfigurationBuilder()
.AddCommandLine(args)
.AddEnvironmentVariables(prefix: "ASPNETCORE_")
.Build();
with regards,
Subrata
Thank you

Saineshwar BageriRank #115 · 19.6K reputationPosted Sep 11, 2017, 12:41 AM EDT