Resharper 未检测到自定义插件
Resharper Not Detecting Custom Plugin
我正在尝试构建一个非常简单的 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 扩展管理器中。我错过了什么?
找到了!问题是对 Wave
的依赖,我应该使用 <dependency id="Wave" version="[6.0]" />
,这里有详细说明:https://www.jetbrains.com/help/resharper/sdk/Extensions/PlatformVersioning.html
我正在尝试构建一个非常简单的 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
生成的包复制到X:\resharper\Purplebricks.Standards.0.4.0.nupkg
,resharper有一个额外的扩展管理器包源x:\resharper
据我所知,一切都已正确连接,但扩展从未显示在 resharper 扩展管理器中。我错过了什么?
找到了!问题是对 Wave
的依赖,我应该使用 <dependency id="Wave" version="[6.0]" />
,这里有详细说明:https://www.jetbrains.com/help/resharper/sdk/Extensions/PlatformVersioning.html