Unable to see vsts work items in code lens: Unable to determine the team project collection

Viewed 783

I'm getting following error:

Unable to determine the team project collection. Please connect to the appropriate team collection and try again

I've double checked that I added my work account to visual studio, which I use also for VSTS access:

vs accounts

Why I'm getting this error?

1 Answers

You connected to the local git repository, so there no settings for VSTS.

Regarding TFVC issue:

  1. Remove the GlobalSection(TeamFoundationVersionControl) = preSolution ... EndGlobalSection code from solution file
  2. remove ... (e.g. SccProjectName) from project file.
  3. Remove .vspscc files. Connect to VSTS git repository: 1. Open Team explorer=>Connection window=>Manage Connections=>Connect to team project=>Select a git repository in a team project=>Click Connect
Related