Visualhg 不会为 Visual Studio 2019 安装
安装无法完成,我收到以下消息: 下载错误
这是安装日志:
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)
任何帮助将不胜感激!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
即使没有维护VisualHG,您也可以使用VS2019的本地使用 vshg
Even if VisualHG isn't maintained, you can use Mercurial natively from VS2019 with VSHG
您应该转移到 Git 或从命令行使用 Hg
Hg 扩展不再维护
错误显示:
VS Marketplace 中的 VisualHG 安装程序上次更新于 2015 年,仅适用于VS 2015。无法支持VS 2019,现已废弃。有些人已将代码从 Codeplex 克隆到 Github 存储库,但那里也没有任何活动。
您可以使用不同的扩展,例如 HgSccPackage 尽管该项目< a href="https://github.com/zzsergant/HgSccPackage" rel="nofollow noreferrer">现已存档。
您应该认真考虑迁移到 Git。 Mercurial 已经不再那么流行了,而且已经超过 5 年了。在分布式版本控制领域,Git 是无可争议的王者。
迁移到 Git
问题Git 与 Mercurial 存储库的互操作性 有几个答案,展示了如何将 Git 与远程 Hg 存储库一起使用。
将 Mercurial 文件夹转换为 Git 存储库的答案展示了如何操作将 Hg 存储库克隆到 Git。在 Windows 10 上,您可以使用 WSL 来使用转换存储库所需的任何 Linux 工具或脚本
Git 手册的 迁移到 Git 有一个关于 Mercurial 的部分,解释了需要哪些工具以及它们的用途。
You should move to Git or use Hg from the command line
Hg extensions are no longer maintained
The error says :
The VisualHG installer in VS Marketplace was last updated in 2015 and only targets up to VS 2015. It can't support VS 2019 and is now abandoned. Some people have cloned the code from Codeplex to a Github repo but there's no activity there either.
You can use a different extension, eg HgSccPackage although even that project is now archived.
You should seriously consider migrating to Git. Mercurial simply isn't that popular any more, and hasn't been for more than 5 years. In the distributed version control space Git is the undisputed king.
Migrating to Git
The question Git interoperability with a Mercurial Repository has several answers that show how Git can be used with a remote Hg repository.
The answers to Converting Mercurial folder to a Git repository show how you can clone an Hg repo to Git. On Windows 10 you can use WSL to use any Linux tools or scripts needed to convert the repository
The Git Manual's Migrating to Git has a section on Mercurial that explains what tools are needed and what they do.