Closed wjf108 closed 7 years ago
WebHost.cs line:173
public static IWebHostBuilder CreateDefaultBuilder(string[] args) { .... if (args != null) { config.AddCommandLine(args); } .... }
It doesn't work with "dotnet run -urls http://xxxx:xxxx", unless I add the following code manually:
public static void Main(string[] args) { var commandConfig = new ConfigurationBuilder() .AddCommandLine(args) .Build(); WebHost.CreateDefaultBuilder(args) .UseConfiguration(commandConfig) .UseStartup<Startup>() .Build() .Run(); }
Duplicate of https://github.com/aspnet/MetaPackages/issues/221
WebHost.cs line:173
It doesn't work with "dotnet run -urls http://xxxx:xxxx", unless I add the following code manually: