New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TFS Error "[file]not be found in your workspace, or you do not have permission to access it" during upgrade or uninstall when solution/project is bound to TFS source control #2739

Closed
zhili1208 opened this Issue May 6, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@zhili1208
Collaborator

zhili1208 commented May 6, 2016

#1164
Reopen this bug, will look into this in 3.5.

@zhili1208 zhili1208 self-assigned this May 6, 2016

@zhili1208 zhili1208 added this to the 3.5 RC milestone May 6, 2016

@zhili1208 zhili1208 changed the title from Install package fails when solution/project is bound to TFS source control to "[file]not be found in your workspace, or you do not have permission to access it" during upgrade or uninstall when solution/project is bound to TFS source control May 9, 2016

@zhili1208 zhili1208 changed the title from "[file]not be found in your workspace, or you do not have permission to access it" during upgrade or uninstall when solution/project is bound to TFS source control to TFS Error "[file]not be found in your workspace, or you do not have permission to access it" during upgrade or uninstall when solution/project is bound to TFS source control May 9, 2016

@zhili1208

This comment has been minimized.

Show comment
Hide comment
@zhili1208

zhili1208 May 9, 2016

Collaborator

repro step:

  1. create a console app, bound it to TFS.
  2. set disableSourceControlIntegration to true in nuget.config
  3. install newtonsoft.json 8.0.1 and upgrade to 8.0.3

Got TFS error: "[file]not be found in your workspace, or you do not have permission to access it"

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.

Collaborator

zhili1208 commented May 9, 2016

repro step:

  1. create a console app, bound it to TFS.
  2. set disableSourceControlIntegration to true in nuget.config
  3. install newtonsoft.json 8.0.1 and upgrade to 8.0.3

Got TFS error: "[file]not be found in your workspace, or you do not have permission to access it"

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.

zhili1208 added a commit to NuGet/NuGet.Client that referenced this issue May 9, 2016

@zhili1208 zhili1208 modified the milestones: 3.5 Beta2, 3.6 Beta Jun 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment