Questions tagged [resharper-sdk]

The ReSharper SDK allows developers to create their own plug-ins for JetBrains ReSharper.

The ReSharper SDK allows developers to create their own plug-ins for JetBrains ReSharper. The SDK consists of the following:

  • A complete set of ReSharper reference assemblies, including PDBs and XML documentations. These assemblies include ReSharper's core DLLs as well as the unit testing infrastructure, letting developers test their own plug-ins.
  • A set of project and solution templates for Visual Studio 2010, that help developers quickly get started with a preconfigured sample plug-in.
  • A set of item templates that let plug-in authors quickly add various ReSharper features to their plug-in.
  • A comprehensive set of samples which include the ReSharper PowerToys as well as a separate plug-in that demonstrates a single feature implemented across many of ReSharper's extensibility mechanisms.

To download the SDK, please visit the ReSharper Downloads page. For a comprehensive document on plug-in development, consult the ReSharper Plugin Development Guide.

27 questions
1
vote
0 answers

Custom localize refactoring with context action in C# using ReSharper 8.2 SDK

Localization in our .NET 4.0 C# project is basically the following: MyCompany.Resources.dll contains two RESX files: A.resx and B.resx with their localized counterparts (A_de.resx, B_hu.resx, etc.). These files consist of the usual RESX xml…
harry
  • 156
  • 1
  • 6
1
vote
1 answer

Resharper SDK - Create File

I'm attempting to make a Resharper plugin to help do some specialized refactoring on a project I've got. The gist of it is that I have a static function in a class and I want to create a new class and move the static function into it. I thought it…
Anthony Compton
  • 5,271
  • 3
  • 29
  • 38
1
vote
1 answer

Team Froundation Service fails to build VSPackage (VsSDK not found)

I'm trying to use the MS Team Foundation Service to build our VisualStudio Extensions. Unfortunately, the build server fails to build my solution, issuing the error message .csproj: The imported project…
Sven Amann
  • 565
  • 2
  • 12
1
vote
0 answers

Accessing selected code using ReSharper SDK

Is there any way to recognize and extract a chunk of code that has been highlighted by clicking and dragging using the ReSharper SDK?
wemblem
  • 139
  • 4
  • 14
0
votes
1 answer

How to get access to the IType / IDeclaredType from an ITreeNode in ReSharper?

I am exploring writing Plugins for ReSharper / Rider. Following the documentation's example, I am building a context action for ReSharper. Here is the context action, which is not doing much yet: [ContextAction ( Name = "New context action", …
Kzryzstof
  • 7,688
  • 10
  • 61
  • 108
0
votes
1 answer

Find usages of ITypeElement, or IDeclaredElement with Resharper SDK

I'm trying to create a custom navigate to plugin with the Resharper SDK plugin. I have managed to get the IDeclaredElement or ITypeElement when I stand on my type doing var referenceName = dataContext.GetSelectedTreeNode(); var…
Anders
  • 17,306
  • 10
  • 76
  • 144
0
votes
1 answer

How can I get the outcome of a Build in a ReSharper Extension

I want to write an ReSharper extension that performs an action after every build, so I guess I need to first know when a build has completed and the also find out about if the build was successful or not Any tips about how to do that? (I'm…
niklasda
  • 116
  • 6
0
votes
1 answer

How to get Type instance from IType (Resharper 8 SDK)

I'm trying to write my first ReSharper extension and I'm stuck at the following problem: How do you get a resolved Type from an IType descriptor of it? For background, I'm trying to write an analyzer that uses a tool to test the compatibility of two…
Andre Luus
  • 3,692
  • 3
  • 33
  • 46
0
votes
2 answers

Deploy Resharper 9.2 Plugin as a dll

For Resharper 7.1 we had written a Resharper Plugin - which was placed in the C:\Users\\AppData\Roaming\JetBrains\ReSharper\vAny\Plugins folder. In VS 2012 the plugin worked without any issue. The intention of the plugin is to analyze the…
0
votes
1 answer

SearchDomainFactory.Instance is obsolete: 'Inject me!' ( Can't find out how to create instance)

I'm in the process of trying to migrate a R# extension project from R# 6 to R# 8. (I've taken over a project that someone wrote, and I'm new to writing extensions.) In the existing v6 project there is a class that derives from RenameWorkflow, and…
snowcode
  • 1,033
  • 10
  • 24
0
votes
1 answer

Accessing IMethodDeclaration objects via ReSharper SDK

I have in hand an INamespaceBody, IClassDeclaration, and IMethod. I want to get the IMethodDeclaration corresponding to the IMethod and the IClassBody corresponding to the IClassDeclaration. But I am totally at a loss...how can I achieve this?
-1
votes
1 answer

How do you determine the return type of a method using the ReSharper SDK?

I'm trying to write a simple ReSharper 7.1 plugin to change the return type of methods under certain circumstances. I've derived my class from ElementProblemAnalyzer and implemented the Run method as follows: protected…
Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
1
2