Blog Entry
dotnet启动配置文件launchSetting.json
dotnet启动配置文件launchSetting.json
- Created
- 2022/07/03
- Updated
- 2022/07/03
资料
- dotnet run
--launch-profile <NAME>: 指定启动配置,通常为Development,Staging和Production--no-launch-profile: 不适用启动配置
- 在 ASP.NET Core 中使用多个环境
Properties
通常Asp.Net项目在使用Visual Studio新建项目时会自动生成Properties/launchSetting.json文件,如果需要在其他类型的项目启用启动配置,需要打开启动配置文件
- 打开项目属性
- 调试 -> 常规 -> 打开调试启动配置文件UI
- 稍作修改,保存时就会自动生成
Properties/lauchSetting.json文件