我想配置捆绑到我的新项目。我已使用TFS
在线配置了我的项目,但我无法通过nuget
添加任何软件包并始终收到此错误。
The item F:\Project\MOC\packages\WebGrease.1.5.2\lib\WebGrease.dll could not be found in your workspace, or you do not have permission to access it.
The item F:\Project\MOC\packages\WebGrease.1.5.2\tools\install.ps1 could not be found in your workspace, or you do not have permission to access it.
The item F:\Project\MOC\packages\WebGrease.1.5.2\tools\uninstall.ps1 could not be found in your workspace, or you do not have permission to access it.
答案 0 :(得分:0)
这可能是旧版本的nuget bug。更多细节请参考GitHub的帖子:Install package fails when solution/project is bound to TFS source control
该错误是在卸载包期间,nuget将删除包 来自TFS的文件,但如果用户将 disableSourceControllntegration 设置为 是的,在安装过程中,包文件未添加到TFS工作区, 所以TFS在卸载期间无法找到这些文件,
修复是在删除之前检查disableSourceControlIntegration 来自TFS的包文件。
还建议您将您的nuget版本更新为最新版本,然后重试。