question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Visual Studio unable to locate git-credential-manager-core for recent git version

See original GitHub issue

SourceLink doesn’t seem to work anymore for repository that require authentication. It seems that recently the git installer has moved the location of git-credential-manager-core.exe from C:\Program Files\Git\mingw64\libexec\git-core to C:\Program Files\Git\mingw64\bin (see https://github.com/GitCredentialManager/git-credential-manager/issues/762). Visual Studio is no longer able to locate it, even if this folder is in the path. Installing the standalone gcm-win doesn’t fix the problem either.

Logs:

Navigating to symbol 'XXX()' from 'XXX'.
Symbol found in assembly path 'C:\Users\XXX\.nuget\packages\xxx\n.n.n\lib\netstandard2.1\XXX.dll'
Found embedded PDB file.
git-credential-manager-core.exe: "git-credential-manager-core.exe" could not be found.
ERROR: The request failed with code 404 : "NOT FOUND". Treating 404 as authentication failure. Some services return 404 instead of 401 for authentication failures.
Timed out trying to download source code from SourceLink. Subsequent requests may succeed.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chuckriescommented, Aug 26, 2022

@alefranz yes it is known to be broken in preview 1 unfortunately, but will be fixed in preview 2.

If you need to fix in preview 1, you should be able to:

  1. Close all VS instances
  2. Open <vs install root>\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TeamExplorer.pkgdef as Administrator in a text editor
  3. Change "GitCredentialManagerCoreExePath"="$PackageFolder$\Git\mingw64\libexec\git-core\git-credential-manager-core.exe" to "GitCredentialManagerCoreExePath"="$PackageFolder$\Git\mingw64\bin\git-credential-manager-core.exe"
  4. Open a “Developer Command Prompt for VS 2022 Preview” as Administrator.
  5. Run devenv /setup
  6. Open VS and retry the repro.
0reactions
alefranzcommented, Aug 26, 2022

ah! I’m on Preview 1 of 17.4.0, I’ll wait for the next preview and re-open if it will be still an issue. Thank you both and have a nice weekend!

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS 2019 16.9.4 using GCM Core with "new Git experience" ...
Connecting to GitLab from Visual Studio 2019 16.9.4 with "GCM Core" selected in Options>Source Control>Git Global Settings>Credential Helper ...
Read more >
How to re-authorize the OAuth Application 'Git Credential ...
In Visual studio code, click on profile icon and signout of git. Then login to github, go to settings > Applications > Authorized...
Read more >
Git settings and preferences in Visual Studio
To configure Git settings in Visual Studio, choose Settings from the top-level Git menu. The Git menu with a callout to the Settings...
Read more >
Git-Credential-Manager-for-Windows - Microsoft Open Source
Secure Git credential storage for Windows with support for Visual Studio Team Services, GitHub, and Bitbucket multi-factor authentication.
Read more >
Git Credential Manager Core: Building a universal ...
Git Credential Manager Core : Building a universal authentication experience. Authentication is a critical component to your daily development.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found