已安装 Nuget 包但未解析引用 [英] Nuget package installed but references not resolved
问题描述
我有一个多项目解决方案,其中 Prism Nuget 软件包安装在多个项目中.然后,我尝试使用 Nuget 包管理器 UI 将 Prism Mef 扩展包添加到其中一个项目(我已将其添加到其他项目之一).
I have a multi-project solution with Prism Nuget packages installed in several projects. I then attempted to add a Prism Mef extensions package to one of the projects using the Nuget Package Manager UI (I have already added it to one of the other projects).
我第一次尝试添加包时,安装其中一个依赖项失败,没有具体的错误原因,只是失败".所以,我第二次安装了它,一切似乎都很好,没有报告错误,但有一些引用没有解决.
The first time I attempted to add the package, it failed to install one of the dependencies, no specific error reason, just "failed". So, I installed it a second time, all seemed to be fine, no errors reported, but a few of the references did not resolve.
所以,我卸载了软件包和所有依赖项,然后再次安装.再次一切看起来都很好,但更多的参考没有解决.
So, I uninstalled the package and all dependencies and installed it again. Again all appeared fine, but more references do not resolve.
我多次尝试卸载和安装软件包,但现在每次都得到相同的结果.
I have tried uninstalling and installing the package more times but get the same result every time now.
这个问题我遇到过很多次,我知道它不是 Prism 包特有的,因为我遇到过很多不同的包.
I have had this problem many times and I know its not specific to the Prism package as I've had it with loads of different packages.
我认为这只是 Nuget 的一个主要错误,但我希望有人知道一种简单的方法来修复它.我认为使用 Nuget 控制台通常会取得更好的成功,但我发现使用起来更费力.
I think its just a major bug with Nuget, but I'm hoping somebody will know an easy way to fix it. I think I usually have better success with the Nuget console, but I find it more effort to use.
我在网上进行了一些搜索,但没有真正找到问题原因的很好解释或解决方法.
I've done some searching online and not really found a good explanation of the cause of the problem or a way to resolve it.
工作中有人完全拒绝与 Nuget 有任何关系,因为他有很多这样的问题,但我决心让它发挥作用!
Somebody at work completely refuses to have anything to do with Nuget as he has so many of these issues, but I am determined to make it work!
推荐答案
我刚刚关闭 Visual Studio 并重新打开它,引用已解决...!
I just closed Visual Studio and reopened it and references are resolved...!
这篇关于已安装 Nuget 包但未解析引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!