Publicando aplicação .Net Core no IIS

Passo 1 (Habilitar IIS)

Passo 2 (Instalar o .Net Core Windows Server Hosting)

Módulo AspNetCoreModule adicionada

Passo 3 (Adicionando dependências do IIS no projeto)

var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
services.Configure<IISOptions>(o => 
{
o.ForwardClientCertificate = false;
});

Passo 4 (Publicando projeto)

Publicando projeto
Publicando direto em uma pasta
Adicionando Pool de Aplicação
Configurando novo aplicativo
Aplicação rodando com IIS

Conclusão

Referências

Bachelor in Computer Science, MBA in Software Architecture and .NET Developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alex Alves

Alex Alves

Bachelor in Computer Science, MBA in Software Architecture and .NET Developer.

More from Medium

Upload Files in .NET 5 on external domain

Replicating a Fashion UI in Xamarin.Forms

C Sharp .Net For Students — March 2022 Update

MySQL Database with .NET Core 6 and Entity Framework