Looking at the codes, they have the same comments, suggesting that they do the same thing:
/// <summary>
/// Configures the port and base path the server should listen on when
/// running behind AspNetCoreModule. The app will also be configured
/// to capture startup errors.
/// </summary>
UseIIS
is in Microsoft.AspNetCore.Server.IIS
package, while UseIISIntegration
is in Microsoft.AspNetCore.Server.IISIntegration
.
What is the difference between the two? When do you need to use one versus the other? (or maybe both?)
UPDATE: There is a similar question on github, But there is no helpful answer there: https://github.com/aspnet/AspNetCore/issues/6197