Access Web.config settings in Asp.Net Core App?

前端 未结 3 1164
萌比男神i
萌比男神i 2020-12-01 07:44

I understand that asp.net core has a new configuration system that is quite flexible and that\'s great. But there are things I like about the web.config based configuration

3条回答
  •  长情又很酷
    2020-12-01 07:47

    I also ran into this issue. After some investigation and reading it's like that you are able to add web.config manually but this is for providing settings for IIS (e.g Authentication, ...).

    For the appsettings or custom settings you have to work with the appsettings.json file and the new Configuration in .Net Core.

    Microsoft Documentation

提交回复
热议问题