找不到ConfigurationManager
我在班上使用ConfigurationManager。我添加使用System.Configuration。使用的是灰色,而configurationManager未知。为什么我的.NET Core 3.1项目不知道System.Configuration.configurationManager?它应该是标准的吗?
I use the ConfigurationManager in my class. I add the using System.Configuration. The using is grey and the ConfigurationManager unknown. Why my .NET Core 3.1 project don't know System.Configuration.ConfigurationManager? It should be standard?!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须将 system.configuration.dll 添加到引用中。或通过
install-package system.configuration.configurationManager 命令。
You have to add System.Configuration.dll to the referencess. or installing corresponding package by
Install-Package System.Configuration.ConfigurationManager command.