简体   繁体   中英

Asp.Net Core application using the Kestrel web server instead of IIS, why?

I am developing Ap.Net Code web application, I am using the below setting in the csproj file. When I run the application using visual studio I can see dotnet.exe running in the task manager, but it should be w3wp.exe or iisexpress.exe in case of InProcess hosting. So what could be the reason behind it?

<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>

CSProj file:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
  </PropertyGroup>

  <ItemGroup>
    <Folder Include="wwwroot\" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.8" />
  </ItemGroup>
</Project>

For hosting in process feature, it is in netcoreapp2.2 .

For previous feature, it is out-of-process hosting .

This could be found from IIS in-process hosting

For testing this feature, you could try to create Asp.Net Core MVC 2.2 template.

If you want to check this feature in your current project, you need to migrate your current project to Asp.Net Core 2.2, for migration, you could refer Migrate from ASP.NET Core 2.1 to 2.2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM