“已经引用了 Essential.Diagnostics”

发布于 2025-01-06 10:06:23 字数 236 浏览 1 评论 0原文

我尝试通过安装 Essential.Diagnostics

Install-Package Essential.Diagnostics 

但遇到一个问题,它说我引用了不存在的东西,所以我尝试删除引用,现在我不知道如何重新添加它。当我再次在包管理器控制台中运行上述命令时,它一直说我的项目已经有对它的引用,尽管我可以在解决方案资源管理器中看到它不存在。

我该如何解决这个问题?

I tried installing Essential.Diagnostics via

Install-Package Essential.Diagnostics 

But I had an issue where it said I was referencing something that didn't exist, so I tried removing the reference, and now I don't know how to re-add it. When I run the above command in the Package Manager Console again, it keeps saying my project already has a reference to it, even though I can see in the Solution Explorer that it isn't there.

How do I fix this?

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

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

发布评论

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

评论(1

木緿 2025-01-13 10:06:23

刚刚注意到我的项目中有一个名为“packages.config”的文件。我打开它,里面装着可疑的包裹。我删除了该文件并重新安装了该软件包。现已添加成功。

我想这留下了一个问题,那么你应该如何正确删除一个包呢?

Just noticed a file called "packages.config" in my project. I opened that, and it contained the suspect package. I deleted the file and re-installed the package. Successfully added now.

I guess that leaves the question, how are you supposed to properly remove a package then?

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