LaunchSettings.json 配置详细说明
{
////////////////////////////////////////使用IIS Express启动配置////////////////////////////////////////////
"iisSettings": {
"windowsAuthentication": false, //是否启用 Windows 身份验证
"anonymousAuthentication": true, //IIS是否启用匿名身份验证
"iisExpress": {
"applicationUrl": "http://localhost:53799", //指定 IIS 服务器的地址
"sslPort": 0 //指定IIS 服务器的https端口
}
},
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"IIS Express": {
"commandName": "IISExpress", //命令名:IIS启动
"launchBrowser": true, //是否自动启动浏览器
"launchUrl": "swagger", //浏览器默认打开位置 example :http://localhost:53799/swagger
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" //设置环境变量,当前环境设为开发环境
}
},
/////////////////////////////////////// 使用项目名启动配置///////////////////////////////////////////////
"WebApplication3": {
"commandName": "Project", //命令名:项目启动
"launchBrowser": true, //是否自动启动浏览器
"launchUrl": "swagger", //浏览器默认打开位置 example :http://localhost:53799/swagger
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" //设置环境变量,当前环境设为开发环境
},
"dotnetRunMessages": "true",
"applicationUrl": "http://localhost:8081" //指定 项目启动的地址
},
///////////////////////////////////////使用docker启动配置////////////////////////////////////////////////
"Docker": {
"commandName": "Docker", //命令名:DOkcer启动
"launchBrowser": true, //是否自动启动浏览器
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger", //指定 项目启动的地址
"publishAllPorts": true
}
}
}