“已经引用了 Essential.Diagnostics”
我尝试通过安装 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
刚刚注意到我的项目中有一个名为“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?