Move AddCommandLine in SampleStartups (#1449)
This commit is contained in:
parent
de49ba74db
commit
ba88bdfd5e
|
|
@ -15,9 +15,9 @@ namespace SampleStartups
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
var config = new ConfigurationBuilder()
|
var config = new ConfigurationBuilder()
|
||||||
.AddCommandLine(args)
|
|
||||||
.AddEnvironmentVariables(prefix: "ASPNETCORE_")
|
.AddEnvironmentVariables(prefix: "ASPNETCORE_")
|
||||||
.AddJsonFile("hosting.json", optional: true)
|
.AddJsonFile("hosting.json", optional: true)
|
||||||
|
.AddCommandLine(args)
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
var host = new WebHostBuilder()
|
var host = new WebHostBuilder()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue