【问题标题】:Visualhg wont install for Visual Studio 2019Visualhg 不会为 Visual Studio 2019 安装
【发布时间】:2022-11-23 23:25:39
【问题描述】:

安装不会完成,我收到此消息: Download Error

这是安装日志:

4/7/2022 8:37:31 AM - Microsoft VSIX Installer
4/7/2022 8:37:31 AM - -------------------------------------------
4/7/2022 8:37:31 AM - vsixinstaller.exe version:
4/7/2022 8:37:31 AM - 17.1.1035-preview2
4/7/2022 8:37:31 AM - -------------------------------------------
4/7/2022 8:37:31 AM - Command line parameters:
4/7/2022 8:37:31 AM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\rebek\Downloads\VisualHG.vsix
4/7/2022 8:37:31 AM - -------------------------------------------
4/7/2022 8:37:31 AM - Microsoft VSIX Installer
4/7/2022 8:37:31 AM - -------------------------------------------
4/7/2022 8:37:34 AM - Initializing Install...
4/7/2022 8:37:34 AM - Extension Details...
4/7/2022 8:37:34 AM -   Identifier         : DADADA00-dfd3-4e42-a61c-499121e136f3
4/7/2022 8:37:34 AM -   Name               : VisualHG
4/7/2022 8:37:34 AM -   Author             : Bernd Schrader
4/7/2022 8:37:34 AM -   Version            : 1.1.7
4/7/2022 8:37:34 AM -   Description        : Mercurial source control integration
4/7/2022 8:37:34 AM -   Locale             : en-US
4/7/2022 8:37:34 AM -   MoreInfoURL        : http://visualhg.codeplex.com/
4/7/2022 8:37:34 AM -   InstalledByMSI     : False
4/7/2022 8:37:34 AM -   SupportedFrameworkVersionRange : [4.0]
4/7/2022 8:37:34 AM - 
4/7/2022 8:37:34 AM -   SignatureState     : Unsigned
4/7/2022 8:37:34 AM -   Supported Products : 
4/7/2022 8:37:34 AM -       Microsoft.VisualStudio.Pro
4/7/2022 8:37:34 AM -           Version : [10.0,11.0)
4/7/2022 8:37:34 AM -           ProductArchitecture : x86
4/7/2022 8:37:34 AM -       Microsoft.VisualStudio.Pro
4/7/2022 8:37:34 AM -           Version : [11.0,12.0)
4/7/2022 8:37:34 AM -           ProductArchitecture : x86
4/7/2022 8:37:34 AM -       Microsoft.VisualStudio.Pro
4/7/2022 8:37:34 AM -           Version : [12.0,13.0)
4/7/2022 8:37:34 AM -           ProductArchitecture : x86
4/7/2022 8:37:34 AM -       Microsoft.VisualStudio.Pro
4/7/2022 8:37:34 AM -           Version : [14.0,15.0)
4/7/2022 8:37:34 AM -           ProductArchitecture : x86
4/7/2022 8:37:34 AM - 
4/7/2022 8:37:34 AM -   References         : 
4/7/2022 8:37:34 AM -       -------------------------------------------------------
4/7/2022 8:37:34 AM -       Identifier   : Microsoft.VisualStudio.MPF
4/7/2022 8:37:34 AM -       Name         : Visual Studio MPF
4/7/2022 8:37:34 AM -       Version      : [10.0,)
4/7/2022 8:37:34 AM -       MoreInfoURL  : 
4/7/2022 8:37:34 AM -       Nested       : No
4/7/2022 8:37:34 AM - 
4/7/2022 8:37:34 AM - Signature Details...
4/7/2022 8:37:34 AM -   Extension is not signed.
4/7/2022 8:37:34 AM - 
4/7/2022 8:37:34 AM - Searching for applicable products...
4/7/2022 8:37:34 AM - Found installed product - Global Location
4/7/2022 8:37:34 AM - Found installed product - AtmelStudio
4/7/2022 8:37:34 AM - Found installed product - Visual Studio Community 2019
4/7/2022 8:37:34 AM - 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)

任何帮助,将不胜感激!

【问题讨论】:

  • 你有没有看到“此扩展无法安装在任何当前安装的产品上。”在错误中。来自VisaulHG page on VS MarketPlace“版本 1.1.7 与 MSVS 2010 - MSVS 2015 兼容”

标签: visual-studio visualhg


【解决方案1】:

即使未维护 VisualHG,您也可以通过 VSHG 在 VS2019 中原生使用 Mercurial

VisualHG 的一个分支,它适用于 Visual Studio 2019和 Visual Studio 2017

【讨论】:

    【解决方案2】:

    您应该移至 Git 或从命令行使用 Hg

    不再维护 Hg 扩展

    错误说:

    VSIXInstaller.NoApplicableSKUsException:此扩展不可安装在任何当前安装的产品上。

    VisualHG installer in VS Marketplace 最后一次更新是在 2015 年,并且只针对 VS 2015。它不能支持 VS 2019,现在被废弃了。有些人已将代码从 Codeplex 克隆到 a Github repo,但那里也没有任何活动。

    您可以使用不同的扩展名,例如 HgSccPackage,即使是那个项目 is now archived

    您应该认真考虑迁移到 Git。 Mercurial 不再那么流行了,而且已经超过 5 年了。在分布式版本控制领域,Git 是无可争议的王者。

    迁移到 Git

    Git interoperability with a Mercurial Repository 这个问题有几个答案,展示了如何将 Git 与远程 Hg 存储库一起使用。

    Converting Mercurial folder to a Git repository 的答案显示了如何将 Hg 存储库克隆到 Git。在 Windows 10 上,您可以使用 WSL 来使用转换存储库所需的任何 Linux 工具或脚本

    Git 手册的Migrating to Git 有一个关于 Mercurial 的部分,解释了需要哪些工具以及它们的作用。

    【讨论】:

      猜你喜欢
      • 2019-08-27
      • 1970-01-01
      • 1970-01-01
      • 2020-09-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-04
      相关资源
      最近更新 更多