ASPNetCore托管模式启动区别(2)

 

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:59016",
      "sslPort": 44340
    }
  },
  //在调试的时候选择的两个进程,就行下面的IIS Express和ProNetCore//commandName 的值是能是三种:IIS/IISExpress/ProjectName
  //launchBrowser:是否加载浏览器
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "ProNetCore": {
      "commandName": "Project",
      "launchBrowser": true,
      "applicationUrl": "https://localhost:5001;http://localhost:5000",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}

如何制定是进程内启动还是进程外启动

1:参考上一篇调试里可以选择托管模式

2:项目右键编辑项目问件

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

  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
    <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
  </PropertyGroup>

</Project>

 

ASPNetCore托管模式启动区别(2)

 

ASPNetCore托管模式启动区别(2)

上一篇:从零开始搭建实战级Nodejs服务项目 —— 2. 洋葱模型


下一篇:jQuery的css样式操作