简体   繁体   English

使用tfs git存储库切换vs2015中的分支时访问被拒绝Microsoft.Bcl.Build

[英]Access denied Microsoft.Bcl.Build when switching branch in vs2015 with tfs git repository

When switch from branch in vs2015 I got an access denied error 在vs2015中从分支切换时,我收到了拒绝访问错误

An error occurred. Detailed message: Could not remove
 'C:/git/desan.crf/packages/Microsoft.Bcl.Build.1.0.14/tools/Microsoft.Bcl.Build.Tasks.dll': 
Access is denied.

Closing the project in VS2015 doesn't help. 在VS2015中关闭项目没有帮助。

The problem doesn't exists when I start vs2015 and switch the branch before opening the project 当我启动vs2015并在打开项目之前切换分支时,问题不存在

Solved Problem by removing all packages in the packages folder from git source control in both branches. 通过从两个分支中的git源控件中删除packages文件夹中的所有包来解决问题。

  1. Remove the package in the project from the your solution. 从解决方案中删除项目中的包。
  2. Check in project. 签入项目。
  3. Add an ignore entry to prevent that the folder is committed in the future 添加忽略条目以防止将来提交该文件夹

Do this for both braches 为两个分支做这个

The problem exists because in only one branch the package was delete 存在问题是因为只有一个分支包被删除

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM