我们最近将VSTS帐户从个人帐户切换到Azure AD(我们已在Azure AD之前进行了设置)。
一切正常,除了VS 2017的连接。每次我尝试从VSTS git推或拉 - 我得到一个用户名/密码提示(看起来像VSTS登录屏幕)。
输入用户名和密码后输出错误,VS输出窗口中出现以下错误:
Pushing master
Error: cannot spawn /c/program files (x86)/microsoft visual studio/2017/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory
Error encountered while pushing to the remote repository: Git failed with a fatal error.
could not read Username for 'https://companyname.visualstudio.com': terminal prompts disabled
Pushing to https://companyname.visualstudio.com/_git/Companyname.ApplicationFramework