扩展名不会调试

时间:2015-07-23 14:17:44

标签: debugging visual-studio-2013 visual-studio-2015 vsix

我在2015解决方案中有一个VSIX软件包,目标是VS2013。每当我尝试针对VS2013实验实例运行它时,扩展名都不会显示在已安装的列表中。

但是,我可以通过双击将Ext.ns('hospitals.sectors.doctors') = []; var doctors = Ext.ns('hospitals.sectors.doctors'); doctors[0] = { age : 32 }; 文件手动安装到2013年。这将成功安装(并运行)。

创建.vsix并将其部署到Exp的设置似乎是正确的。我错过了什么?

清单

.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="9D7E0DF5-0A4D-4B43-9D73-4AD3F83260FA" Version="1.2" Language="en-US" Publisher="VersionOne" />
        <DisplayName>VersionOne TFS Checkin Policy</DisplayName>
        <Description xml:space="preserve">TFS Checkin policy from VersionOne for Visual Studio 2013.  Requires code commits to contain a VersionOne identifier</Description>
        <License>LICENSE.md</License>
        <Icon>logo.ico</Icon>
    </Metadata>
    <Installation>
        <InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[12.0]" />
        <InstallationTarget Version="[12.0]" Id="Microsoft.VisualStudio.Premium" />
        <InstallationTarget Version="[12.0]" Id="Microsoft.VisualStudio.Ultimate" />
    </Installation>
    <Dependencies>
        <Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5]" />
    </Dependencies>
    <Assets>
        <Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="File" Path="RegistryKeyToAdd.pkgdef" />
    </Assets>
</PackageManifest>

1 个答案:

答案 0 :(得分:1)

您需要将项目配置为部署到VS2013,即使从VS2015运行也是如此。

Sam Harwell写了一个NuGet package就是这么做的;只需安装该软件包就可以了。

相关问题