Dynamic
appsettings.json vs Web.config
Developers should use appsettings meets developers should learn web. Here's our take.
🧊Nice Pick
appsettings.json
Developers should use appsettings
appsettings.json
Nice PickDevelopers should use appsettings
Pros
- +json when building
- +Related to: asp-net-core, json
Cons
- -Specific tradeoffs depend on your use case
Web.config
Developers should learn Web
Pros
- +config when building or maintaining ASP
- +Related to: asp-net, iis
Cons
- -Specific tradeoffs depend on your use case
The Verdict
Use appsettings.json if: You want json when building and can live with specific tradeoffs depend on your use case.
Use Web.config if: You prioritize config when building or maintaining asp over what appsettings.json offers.
🧊
The Bottom Line
appsettings.json wins
Developers should use appsettings
Disagree with our pick? nice@nicepick.dev