Where is ConfigurationManager's namespace?

后端 未结 7 1091
半阙折子戏
半阙折子戏 2021-01-01 09:43

I\'ve got a reference to System.Configuration - and ConfigurationSettings is found no problem - but the type or namespace \'ConfigurationMana

相关标签:
7条回答
  • 2021-01-01 10:18

    I am using VS 2017, I added 'using System.Configuration' directive and also follow the step to add a reference assembly to the project but IDE still complaint configuration manager does not exist, it turn out it is due to the .net core installed by Nuget just add a empty container. The package System.Configuration.Configurationmanager 4.5.0 need to be installed as well. Start Tools -> Nuget Package Manager -> Package Manager Console and type "Install-Package System.Configuration.ConfigurationManager -Version 4.5.0" and this resolve the problem. Refer below screenshot in Object Browser in VS2017

    enter image description here

    0 讨论(0)
提交回复
热议问题