0

我正在使用以下extension.vsixmanifest文件来创建我的 vsix 包:

<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
  <Metadata>
    <Identity Id="774e58ba-f1b9-40a7-b676-834fa2c220fe" Version="1.0" Language="en-US" Publisher="Me" />
    <DisplayName>MyProduct</DisplayName>
    <Description xml:space="preserve">Description of my product</Description>
    <Icon>App.ico</Icon>
  </Metadata>
  <Installation AllUsers="true">
    <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[11.0, 17.0)" />
    <InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[11.0, 17.0)" />
    <InstallationTarget Id="Microsoft.VisualStudio.Enterprise" Version="[11.0, 17.0)"/>
  </Installation>
  <Dependencies>
    <Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="[4.5,)" />
  </Dependencies>
</PackageManifest>

当我尝试安装面向Visual Studio 2017Visual Studio 2019时,我收到以下消息:

在此处输入图像描述

有人知道我该如何解决这个问题?

4

1 回答 1

1

需要 <Prerequisites>清单中的部分:

至少,所有扩展都应将 Visual Studio 核心编辑器组件指定为先决条件。

于 2019-06-12T02:58:24.203 回答