If you are a plugin writer and intend to support ReSharper 6.1+ in your plugin, we recommend that you port your plugin to begin using the SDK. This offers multiple advantages, not least of which is the ability to unit-test plugins as well as being able to refer to the whole set of SDK assemblies in one go rather than trying to figure out which DLL to reference. To port your plugin to start using the SDK, you need to complete these simple steps:
- Open your plugin project and remove all references that point to ReSharper assemblies.
- Unload the plugin project and open the project file for editing.
- At the very bottom of the file, just before the closing tag, add the following instruction:
<Import Project="$(MSBuildExtensionsPath)\JetBrains\ReSharper.SDK\v6.0\Plugin.Targets" />
If you have a project which performs unit tests, you will need to get rid of existing references to both ReSharper and NUnit (if you are referencing it). Then, perform the steps above, but use the
Plugin.Test.Targets file instead.
Having performed these steps, your plugins will now use the SDK-packaged assemblies for compilation.