.NET Core 跟以往 .NET Framework 存取組態設定檔有很大的不一樣,概略的比較如下:
- .NET Core
- json format
- appsettings.json 檔
- 可繫結強型別
- .NET Framework
- xml format
- web.config / app.config
- Settings.settings
- Auto Generate Code
- Scope
- User
- Applicationer
這裡就著重在 .NET Core 的組態設定
.NET Core 跟以往 .NET Framework 存取組態設定檔有很大的不一樣,概略的比較如下:
這裡就著重在 .NET Core 的組態設定