Resharper未检测到自定义插件

时间:2016-12-01 15:47:54

标签: visual-studio-2015 resharper

我正在尝试构建一个非常简单的resharper插件。目的是我们可以作为nuget包共享我们的内部编码标准。我的目标是Resharper 2016.2.2

nuspec文件如下所示:

<?xml version="1.0"?>
<package>
  <metadata>
    <id>Purplebricks.Standards</id>
    <version>0.4.0</version>
    <title>Purplebricks Coding Standards</title>
    <authors>Rob White</authors>
    <owners>Purplebricks</owners>
    <projectUrl>https://www.purplebricks.com</projectUrl>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>Team settings and live templates for ReSharper</description>
    <copyright>Copyright © Purplebricks</copyright>
    <dependencies>
      <dependency id="Wave" version="[2.0]" />
    </dependencies>
    <releaseNotes>
    </releaseNotes>
    <tags>settings</tags>
  </metadata>
  <files>
    <file src="Settings\" target="DotFiles\Extensions\Purplebricks.Standards\settings\" />
  </files>
</package>

创建包时,.dotsettings文件位于路径<Package Root>\DotFiles\Extensions\Purplebricks.Standards\settings\Standards.DotSettings上的nuspec文件中

生成的包被复制到X:\resharper\Purplebricks.Standards.0.4.0.nupkg,resharper有一个额外的扩展管理器包源x:\resharper

据我所知,所有内容都正确连接,但扩展程序从未显示在resharper扩展管理器中。我错过了什么?

1 个答案:

答案 0 :(得分:2)

发现它!问题是对Wave的依赖,我应该使用<dependency id="Wave" version="[6.0]" />,详情请参阅:https://www.jetbrains.com/help/resharper/sdk/Extensions/PlatformVersioning.html