我试图在Visual Studio 2019 Preview1下从扩展和更新中安装“ Emacs Emulation”,但失败了。
有没有一种方法可以使VS 2019支持Emacs按键绑定。
答案 0 :(得分:1)
根据下一页
https://devblogs.microsoft.com/visualstudio/how-to-upgrade-extensions-to-support-visual-studio-2019/
必须执行以下操作:
1)修复InstalltionTarget的版本号
<Installation InstalledByMsi="false">
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[14.0,16.0)" />
</Installation>
2)修复必备标签的版本号
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
</Prerequisites>
在这种情况下, 1)从以下存储库获取代码: https://github.com/justcla/EmacsKeys
2)编辑第25行source.extension.vsixmanifest。
"<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />"
只需删除16.0并构建扩展。 您会得到警告,但它似乎起作用。
答案 1 :(得分:-1)
install.log中的错误显示:
扩展名找不到Microsoft.VisualStudio.Component.CoreEditor
1 missingRefs)
at Microsoft.VisualStudio.ExtensionManager.PackageInstaller.PrepareEngineInstall(IDependencyGraph dGraph, IDependencyComparisonSeed seed, Component vsCompPkg, Boolean isProductComponent, Int32& totalInstallationSteps)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary
2 extensionsInstalledSoFar,List 1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress
1进度,InstallFlags installFlags,AsyncOperation asyncOp,目标版本为VsVersion,IInstalledExtension&newExtension处)
在Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl扩展,InstallFlags installFlags,IDictionary 2 extensionsInstalledSoFar, List
1个扩展)中,UninstalledSoFar,IInstalledExtensionListmodifiedInstalledExtensionsList,AsyncOperation asyncOp,IProgress`1进度,目标版本为VsVersion)
在Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension,InstallFlags installFlags,AsyncOperation asyncOp,VersionedVsVersion)
在Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension扩展,InstallFlags installFlags,AsyncOperation asyncOp)中希望这可以帮助某人找到解决方案。
谢谢