我在nuget论坛上看到一个问题数目,如果您的文档文件夹位于共享驱动器上,则无法安装。如果我没有改变这个(锁定策略)的灵活性,有什么方法可以使用nuget吗?
下面是从VS扩展管理器安装它时遇到的错误:
系统找不到指定的路径。(HRESULT例外:)

VS日志文件显示:
3/23/2012 9:45:26 PM - Microsoft Visual Studio Extension Installer
3/23/2012 9:45:26 PM - -------------------------------------------
3/23/2012 9:45:26 PM - Initializing Install...
3/23/2012 9:45:26 PM - Extension Details...
3/23/2012 9:45:26 PM - Identifier : NuPackToolsVsix.Microsoft.67e54e40-0ae3-42c5-a949-fddf5739e7a5
3/23/2012 9:45:26 PM - Name : NuGet Package Manager
3/23/2012 9:45:26 PM - Author : Microsoft Corporation
3/23/2012 9:45:26 PM - Version : 1.6.21215.9133
3/23/2012 9:45:26 PM - Description : A collection of tools to automate the process of downloading, installing, upgrading, configuring, and removing packages from a VS Project.
3/23/2012 9:45:26 PM - Locale : en-US
3/23/2012 9:45:26 PM - MoreInfoURL : http://docs.nuget.org/
3/23/2012 9:45:26 PM - InstalledByMSI : False
3/23/2012 9:45:26 PM - MinFramework : 4.0
3/23/2012 9:45:26 PM - MaxFramework : 4.0
3/23/2012 9:45:26 PM -
3/23/2012 9:45:26 PM - Supported Visual Studio Editions :
3/23/2012 9:45:26 PM - Version : 10.0
3/23/2012 9:45:26 PM - Pro
3/23/2012 9:45:26 PM - IntegratedShell
3/23/2012 9:45:26 PM - VWDExpress
3/23/2012 9:45:26 PM - VPDExpress
3/23/2012 9:45:26 PM - Version : 11.0
3/23/2012 9:45:26 PM - Pro
3/23/2012 9:45:26 PM - IntegratedShell
3/23/2012 9:45:26 PM - VWDExpress
3/23/2012 9:45:26 PM - VPDExpress
3/23/2012 9:45:26 PM -
3/23/2012 9:45:26 PM - Supported Isolated Shells :
3/23/2012 9:45:26 PM -
3/23/2012 9:45:26 PM - References :
3/23/2012 9:45:26 PM -
3/23/2012 9:45:26 PM - System.IO.DirectoryNotFoundException: The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.Settings.ExternalSettingsManager.GetScopePaths(String applicationPath, String suffixOrName, Boolean isLogged, Boolean isForIsolatedApplication)
at Microsoft.VisualStudio.Settings.ExternalSettingsManager.CreateForApplication(String applicationPath)
at VSIXInstaller.App.GetExtensionManager(SupportedVSSKU sku)
at VSIXInstaller.App.GetExtensionManagerForApplicableSKU(SupportedVSSKU supportedSKU, IInstallableExtension installableExtension, List`1 applicableSKUs)
at VSIXInstaller.App.InitializeInstall()
at VSIXInstaller.App.OnStartup(StartupEventArgs e)发布于 2012-10-26 09:02:54
我面临着一个类似的问题,关于CasPol和loadFromRemoteSources的各种建议都失败了;下面是对我有用的内容(在Windows 7 sp1上):
HKEY_CURRENT-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\ Personal键将显示共享文件夹作为其值。
C:\Temp\ regedit,因为您很快就会把它改回来
Personal注册表值恢复到以前的状态
发布于 2012-03-24 15:38:06
我没有亲自测试这一点,但是您可以尝试修改C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config文件并包含loadFromRemoteSources元素:
<loadFromRemoteSources enabled="true"/>在<configuration> \ <runtime>的位置。此外,您还可以尝试验证是否安装了其他旧版本的NuGet。您应该使用上下文菜单启动Visual 2010快捷方式,并选择“以管理员身份运行”以确保可以卸载它。
此外,还可以考虑将"FullTrust“添加到.NET的共享中。
CasPol.exe -m -ag 1.2 -url file://ServerName/ShareName/* FullTrust发布于 2012-07-06 11:54:01
尝试在MyComputer的系统属性>预置选项卡中设置您的环境变量路径
https://stackoverflow.com/questions/9851580
复制相似问题