asp.net - 由于获得权限,无法通过nuget安装润滑脂

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

我想配置 bundle 到我的新项目。我已经使用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.

最佳答案

这可能与旧版本有关。更多详细信息,请引用GitHub上的线程:Install package fails when solution/project is bound to TFS source control

The bug is during uninstalling packages, nuget will delete package files from TFS, but if user set disableSourceControllntegration to true, package files are not added to TFS workplace during installing, so TFS can't find those files during uninstalling,

The fix is to check disableSourceControlIntegration before deleting package files from TFS.

Source Link: TFS Error "[file]not be found in your workspace...."



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

关于asp.net - 由于获得权限,无法通过nuget安装润滑脂,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39525954/

相关文章:

Azure 托管的本地构建 Controller + VSO : Error TF400106: Failed to register the build service (Exception Message: Could not find service)

api - 通过 TFS API 识别 'Current' 打开的工作空间?

tfs - 如何修复错误 TF30063 : You are not authorized to access VS2017

go - 如何编写 “exception oriented”代码而不是 “if-error oriented”代码?

c# - Microsoft AntiXSS - 是否需要解码?

javascript - 使用 JavaScript 的 ASP/ASPX 标签可见性

c# - C#Errorprovider.ContainerControl.Controls仅包含TabControl

java - 此测试值会在系统中造成感染吗?

asp.net - ASP .NET Web 窗体应用程序和 ASP .NET Web 窗体站点之间有什么区别

c# - 需要帮助来决定什么是跟踪系统 (.NET) 的最佳解决方案