【问题标题】:Cannot install web grease via nuget because of permission access由于权限访问,无法通过 nuget 安装网络油脂
【发布时间】:2016-09-16 07:26:31
【问题描述】:

我想为我的新项目配置捆绑。我已经在线使用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.

【问题讨论】:

    标签: asp.net tfs error-handling nuget-package


    【解决方案1】:

    这可能是旧版本的 nuget 错误。更多详情,请参考 GitHub 上的帖子:Install package fails when solution/project is bound to TFS source control

    这个bug是在卸载包的过程中,nuget会删除包 来自 TFS 的文件,但如果用户将 disableSourceControllntegration 设置为 是的,安装过程中不会将包文件添加到 TFS 工作区, 所以 TFS 在卸载过程中找不到这些文件,

    修复方法是在删除之前检查 disableSourceControlIntegration 从 TFS 打包文件。

    来源链接:TFS Error "[file]not be found in your workspace...."

    还建议您将 nuget 版本更新到最新版本,然后重试。

    【讨论】:

      猜你喜欢
      • 2022-08-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-03
      • 2018-03-06
      • 2015-07-02
      • 2018-06-24
      • 2015-03-21
      相关资源
      最近更新 更多