gpt4 book ai didi

visual-studio - 安装 Visual Studio 扩展时缺少 Microsoft.VisualStudio.Component.CoreEditor

转载 作者:行者123 更新时间:2023-12-04 06:23:22 24 4
gpt4 key购买 nike

我正在尝试获取 scrcpy使用 this extension 在 Visual Studio 中运行并确定我是否可以扩展其功能。

无法为 Visual Studio 2019 安装 VSIX 扩展

安装失败提示:

enter image description here

我更新了 <InstallationTarget><Dependency>按照 here ,

You need to change InstallationTarget to [15.0,17.0) and Prerequisite to [15.8.27729.1,).



我解压了 .vsix 文件,更新了 extension.vsixmanifest文件到以下内容:
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,17.0)" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="[4.5,)" />
<Dependency Id="Microsoft.VisualStudio.MPF.15.0" DisplayName="Visual Studio MPF 15.0" Version="[15.0]" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.8.27729.1,)" DisplayName="Visual Studio core editor" />
</Prerequisites>

压缩目录,重命名为*.vsix,再次尝试安装。

安装程序现在识别 Visual Studio 2019,开始安装但失败,丢失 Microsoft.VisualStudio.Component.CoreEditor .
12/11/2019 5:25:00 PM - Beginning to install extension to Visual Studio Enterprise 2019 (2)...
12/11/2019 5:25:02 PM - Install Error : Microsoft.VisualStudio.ExtensionManager.MissingReferencesException: This extension cannot be installed because the following references are missing:
-Microsoft.VisualStudio.Component.CoreEditor (Microsoft.VisualStudio.Component.CoreEditor)
at Microsoft.VisualStudio.ExtensionManager.EngineUtilities.EnsureNoMissingReferences(IEnumerable`1 missingRefs)
at Microsoft.VisualStudio.ExtensionManager.PackageInstaller.PrepareEngineInstall(IDependencyGraph dGraph, IDependencyComparisonSeed seed, Component vsixComponent, 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 progress, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion, IInstalledExtension& newExtension)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension extension, InstallFlags installFlags, AsyncOperation asyncOp)

请对下一步提出建议?

最佳答案

Missing Microsoft.VisualStudio.Component.CoreEditor when installing Visual Studio extension



我认为主要问题是你没有修改 Microsoft.VisualStudio.Component.CoreEditor的版本在 catalog.json 中支持 Visual Studio 2019文件。所以当你运行vsix文件时,它会监控然后运行​​文件是否缺少对应的VS2019 Microsoft.VisualStudio.Com ponent. CoreEditor .

解决方案

除了对 extension.vsixmanifest 的更改文件,
也请改 "Microsoft.VisualStudio.Component.CoreEditor":"[15.0,16.0)"catalog.json文件到 [15.0,17.0) .

希望能帮到你。

关于visual-studio - 安装 Visual Studio 扩展时缺少 Microsoft.VisualStudio.Component.CoreEditor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59295089/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com