找不到ConfigurationManager

发布于 2025-02-09 04:08:49 字数 340 浏览 0 评论 0原文

我在班上使用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?!

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

善良天后 2025-02-16 04:08:49

您必须将 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文