Is ConfigurationManager.AppSettings available in .NET Core 2.0?

前端 未结 5 1752
孤街浪徒
孤街浪徒 2020-11-29 01:05

I\'ve got a method that reads settings from my config file like this:

var value = ConfigurationManager.AppSettings[key];

It compiles fine

5条回答
  •  心在旅途
    2020-11-29 01:23

    Once you have the packages setup, you'll need to create either an app.config or web.config and add something like the following:

    
      
        
      
    
    

提交回复
热议问题