简体   繁体   English

Github 扩展未检测到 Visual Studio 2019

[英]Visual Studio 2019 is not detected by Github extension

After running Github extension for VS while my Visual Stuio is still running, I received the error message below.在我的 Visual Stuio 仍在运行时为 VS 运行 Github 扩展后,我收到以下错误消息。 I appreciate some guidance how to resolve this.我很感激一些指导如何解决这个问题。


Maybe my question should be: if Github is already built-in, I do not see the "Clone Repo" button when I click the Source Control icon on the lefthand-side of the VS window.也许我的问题应该是:如果 Github 已经内置,当我单击 VS window 左侧的源代码控制图标时,我看不到“克隆回购”按钮。 This is true even when I'm already signed in to Github within VS.即使我已经在 VS 中登录到 Github 也是如此。


>  Microsoft VSIX Installer
>          -------------------------------------------
>         vsixinstaller.exe version:
>         
>         Command line parameters:
>          C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\Jim\GitHub.VisualStudio-v2.11.106.vsix
>         
>          Microsoft VSIX Installer
>         Skipping product Microsoft.VisualStudio.Product.BuildTools (7670aa47) since it does not support extensions
>         Initializing Install...
>          Extension Details...
>         Identifier         : c3d3dc68-c977-411f-b3e8-03b0dccf7dfc
>         Name               : GitHub Extension for Visual Studio
>         Author             : GitHub, Inc
>         Version            : 2.11.106.19330
>         Description        : A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
>         Locale             : en-US
>         MoreInfoURL        : https://visualstudio.github.com/
>     
>     InstalledByMSI     : False
>     SupportedFrameworkVersionRange : [4.5,)
>     
>     SignatureState     : ValidSignature
>     SignedBy           : GitHub, Inc.
>     Certificate Info   : 
>     [Subject]       : CN="GitHub, Inc.", O="GitHub, Inc.", L=San Francisco, S=California, C=US
>     [Issuer]        : CN=DigiCert SHA2 Assured ID Code Signing CA, OU=www.digicert.com, O=DigiCert Inc, C=US
>     [Serial Number] : 09144B52C8330F257D2512DAAAA1E545
>     [Not Before]    : 5/2/2020 8:00:00 AM
>     [Not After]     : 9/2/2023 8:00:00 PM
>     [Thumbprint]    : 9C5A6D389E1454F2ED9EE9419CDF743689709F9C
>     
>     Supported Products : 
>     Microsoft.VisualStudio.Community
>     Version : [14.0,17.0)
>     
>     References         : 
>     Identifier   : Microsoft.VisualStudio.MPF.14.0
>           Name         : Visual Studio MPF 14.0
>     Version      : [14.0,)
>     MoreInfoURL  : 
>     Nested       : No
>     
>     Prerequisites      : 
>     Identifier   : Microsoft.VisualStudio.Component.CoreEditor
>     Name         : Visual Studio core editor
>     Version      : [15.0.25824.0,)
>     
>     Signature Details...
>     Extension is signed with a valid signature.
>     
>     Searching for applicable products...
>     Found installed product - Global Location
>     VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
>        at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension
> extension, String extensionPackParentName, Boolean isRepairSupported,
> IStateData stateData, IEnumerable`1& skuData)
>        at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported,
> IStateData stateData, IEnumerable`1& skuData)
>        at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData
> stateData, Boolean isRepairSupported)
>        at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData
> stateData, Boolean isRepairSupported)
>        at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
>        at VSIXInstaller.App.Initialize()
>        at System.Threading.Tasks.Task`1.InnerInvoke()
>        at System.Threading.Tasks.Task.Execute()
>     --- End of stack trace from previous location where exception was thrown ---
>        at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception
> exceptionObject)

Github support is now built in the VS2019. Github 支持现在内置在 VS2019 中。 You probably have a conflict between the built-in version and your extension.您可能在内置版本和扩展之间存在冲突。 You can safely uninstall your extension.您可以安全地卸载您的扩展程序。

Did you get it from the marketplace?你是从市场上买的吗? Those are okay to install while VS is running, they just tell you to restart afterwards.这些可以在 VS 运行时安装,它们只是告诉你之后重新启动。 If it's a third-party extensions, installing it while VS is running is probably not a good idea.如果是第三方扩展,在 VS 运行时安装它可能不是一个好主意。

Otherwise:否则:

  • Make sure you have the latest version of VS2019 (16.10.1 as of this post).确保您拥有最新版本的 VS2019(截至本文为 16.10.1)。
  • Check Tools > Options > Source Control > Plug-in Selection is set to Git .检查Tools > Options > Source Control > Plug-in Selection设置为Git
  • More options will then appear below Plug-in Selection that will allow you to set up global and per-repository/solution settings.更多选项将出现在Plug-in Selection下方,允许您设置全局和每个存储库/解决方案设置。

The repository window is no longer Source Control or Team Explorer for Git integration.存储库 window 不再是 Git 集成的源代码控制或团队资源管理器。 It's been migrated to two panel windows: View > Git Changes and View > Git Repository along with an entire menu bar item Git located next to View . It's been migrated to two panel windows: View > Git Changes and View > Git Repository along with an entire menu bar item Git located next to View .

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

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