Netix Resharper Plugin

Greetings everybody,

I've crafted a plugin which adds several pretty simple highlights and quickfixes.
It doesn't do advanced things, like conflict resolving.

Features:

  • warns on fields that does not conform to code style (field prefix and suffix).

Provides quick fix to rename

  • adds quickfixes to create empty class from unresolved type reference. Two

options are given - create in same file and create as new file.

  • adds warning for parameters of overriden method, which name doesn't match

parameter name from base class. Provides quick fix to rename

http://users.netix.ru/orangy/resharper/Netix.Resharper.Plugin.zip
Zip file contains dll and source code, size is 28kb.

To install,
1. close all instances of VS
2. create "Plugins" folder under "C:\Program Files\JetBrains\ReSharper\VS2003\"
(or VS2005), create subfolder "Netix Resharper Plugin" and put DLL in there.

3. start VS
4. verify plugin listed using menu Resharper/Plugins...

NO GUARATEES IT WILL WORK. Not even tested under VS2005. Use at your own
risk in real work and as a base for your own plugin developments. Note, that
I'm neither JetBrains employee nor otherwise affiliated with JetBrains, other
then I love Resharper :)

Comments are welcome. More to come later.

Sincerely,
Ilya Ryzhenkov


6 comments
Comment actions Permalink

Comments on your plugin:
When registering your stage, please provide right info to order it (the main
goal is to make owr own stages run before your's)

internal class NetixDaemonStage : IDaemonStage
{
public Key[] StagesBefore
{
get { return new Key[] {LanguageSpecificDaemonStage.KEY}; }
}
}


--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Ilya Ryzhenkov" <orangy@netix.ru> wrote in message
news:5992f43be1e0c8c7da0af396b2a7@news.jetbrains.com...

Greetings everybody,

>

I've crafted a plugin which adds several pretty simple highlights and
quickfixes. It doesn't do advanced things, like conflict resolving.
Features:

  • warns on fields that does not conform to code style (field prefix and

suffix). Provides quick fix to rename * adds quickfixes to create empty
class from unresolved type reference. Two options are given - create in
same file and create as new file.

  • adds warning for parameters of overriden method, which name doesn't

match parameter name from base class. Provides quick fix to rename

>

http://users.netix.ru/orangy/resharper/Netix.Resharper.Plugin.zip Zip file
contains dll and source code, size is 28kb.

>

To install, 1. close all instances of VS
2. create "Plugins" folder under "C:\Program
Files\JetBrains\ReSharper\VS2003\" (or VS2005), create subfolder "Netix
Resharper Plugin" and put DLL in there.
3. start VS
4. verify plugin listed using menu Resharper/Plugins...

>

NO GUARATEES IT WILL WORK. Not even tested under VS2005. Use at your own
risk in real work and as a base for your own plugin developments. Note,
that I'm neither JetBrains employee nor otherwise affiliated with
JetBrains, other then I love Resharper :)

>

Comments are welcome. More to come later.

>

Sincerely,
Ilya Ryzhenkov

>



0
Comment actions Permalink

Hello Ilya,

unfortunately most likely it won't work under VS 2005. The problem is that
ReSharper interfaces have different interfaces for .NET
framework 1.1 and 2.0 due to usage of generics. So it seems that plugins
also need to be compiled against 1.1 and 2.0 framework just
like ReSharper's assemblies. If you have no VS 2005 to make a version of
your plugin for it, we could do it here.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

NO GUARATEES IT WILL WORK. Not even tested under VS2005.



0
Comment actions Permalink

Errata: 'have different signatures'.

ReSharper interfaces have different interfaces for .NET
framework 1.1 and 2.0 due to usage of generics.



0
Comment actions Permalink

Hello Eugene,

Fixed for next version. I looked at your code via reflector, but didn't spot
such uses.

EP> Comments on your plugin:
EP> When registering your stage, please provide right info to order it
EP> (the main
EP> goal is to make owr own stages run before your's)
EP> internal class NetixDaemonStage : IDaemonStage
EP> {
EP> public Key[] StagesBefore
EP> {
EP> get { return new Key[] {LanguageSpecificDaemonStage.KEY}; }
EP> }
EP> }
Sincerely,
Ilya Ryzhenkov


0
Comment actions Permalink

Dunno, did exactly as told - put the dll in a directory in the plugins
directory but I can't see it in the plugin list - using 213.


"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c8a894d9d5c568c7d9f50374e24a@news.intellij.net...

Errata: 'have different signatures'.

>
>> ReSharper interfaces have different interfaces for .NET
>> framework 1.1 and 2.0 due to usage of generics.
>



0
Comment actions Permalink

In fact, we created a special tool called "degenerator" which processed source
code and replaced usages of generic collections (as well as some other C#
2.0 constructs) with C# 1.1-compliant code. We run it on ReSharper sources
to get version for VS2003. We plan to include it into ReSharper installation
for plugin authors to be able to provide plugins for both versions of Visual
Studio.

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Ilya,

unfortunately most likely it won't work under VS 2005. The problem is
that
ReSharper interfaces have different interfaces for .NET
framework 1.1 and 2.0 due to usage of generics. So it seems that
plugins
also need to be compiled against 1.1 and 2.0 framework just
like ReSharper's assemblies. If you have no VS 2005 to make a version
of
your plugin for it, we could do it here.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> NO GUARATEES IT WILL WORK. Not even tested under VS2005.
>>


0

Please sign in to leave a comment.