When I attempt to update the NuGet Package Manager in VS2012 I get a "The system cannot find the path specified" error. I tried uninstalling the package so I could do a fresh install from scratch, but I get the same error.
当我尝试在VS2012中更新NuGet包管理器时,我得到“系统找不到指定的路径”错误。我尝试卸载软件包,所以我可以从头开始进行全新安装,但是我得到了同样的错误。
I have searched here, and the internet generally, for the exact text of the error message as well as more general searches related to problems with paths in VS2012, etc.
我一直在这里和互联网上搜索错误消息的确切文本以及与VS2012中的路径问题相关的更一般搜索等。
I have discovered that none of the environment variables/paths under Tools --> Options --> Environment --> Environment Security are valid and I suspect this is the root of my problem, but I cannot find a reference for how these variables should be configured.
我发现工具 - >选项 - >环境 - >环境安全下的环境变量/路径都没有效,我怀疑这是我问题的根源,但我找不到这些变量应该如何引用的参考配置。
The list includes: %APPDATA%, %ALLUSERSPROFILE%, %VSAPPDATA%, %VSCOMMONAPPDATA%, and %VSMYDOCUMENTS%
该列表包括:%APPDATA%,%ALLUSERSPROFILE%,%VSAPPDATA%,%VSCOMMONAPPDATA%和%VSMYDOCUMENTS%
Can anyone give me guidance on how to properly configure these, and/or any other ideas that might help me get the NuGet Package Manager reinstalled on my machine?
任何人都可以给我指导如何正确配置这些,和/或任何其他可能有助于我在我的机器上重新安装NuGet Package Manager的想法?
JC
JC
1 个解决方案
#1
0
I finally stumbled across the solution to this problem, while fixing another issue.
我终于偶然发现了解决这个问题的方法,同时解决了另一个问题。
Let's start with a Microsoft KB article: http://support.microsoft.com/kb/327763
让我们从Microsoft知识库文章开始:http://support.microsoft.com/kb/327763
It turns out that there are several registry entries that need to be checked to make sure they all make sense for your environment. In my case several of the entries erroneously pointed at a network location instead of "My Documents," so installations and updates that depended on these entries, but checked them for validity, caused an error. One such update was the NuGet Package Manager, referenced in my question.
事实证明,有几个注册表项需要检查,以确保它们对您的环境都有意义。在我的情况下,一些条目错误地指向网络位置而不是“我的文档”,因此依赖于这些条目的安装和更新,但检查它们的有效性,导致错误。其中一个更新是我的问题中引用的NuGet包管理器。
I fixed the registry entries referenced in the KB article and NuGet (as well as several other things) work perfectly now.
我修复了KB文章中引用的注册表项和NuGet(以及其他一些东西)现在完美地工作。
Hope this helps someone besides me!
希望这能帮助除了我之外的人!
#1
0
I finally stumbled across the solution to this problem, while fixing another issue.
我终于偶然发现了解决这个问题的方法,同时解决了另一个问题。
Let's start with a Microsoft KB article: http://support.microsoft.com/kb/327763
让我们从Microsoft知识库文章开始:http://support.microsoft.com/kb/327763
It turns out that there are several registry entries that need to be checked to make sure they all make sense for your environment. In my case several of the entries erroneously pointed at a network location instead of "My Documents," so installations and updates that depended on these entries, but checked them for validity, caused an error. One such update was the NuGet Package Manager, referenced in my question.
事实证明,有几个注册表项需要检查,以确保它们对您的环境都有意义。在我的情况下,一些条目错误地指向网络位置而不是“我的文档”,因此依赖于这些条目的安装和更新,但检查它们的有效性,导致错误。其中一个更新是我的问题中引用的NuGet包管理器。
I fixed the registry entries referenced in the KB article and NuGet (as well as several other things) work perfectly now.
我修复了KB文章中引用的注册表项和NuGet(以及其他一些东西)现在完美地工作。
Hope this helps someone besides me!
希望这能帮助除了我之外的人!