ReSharper plugins via NuGet

by Matt 18. October 2011 10:04

I have this little ReSharper plugin. It is small and rather useful. And one of the most frequent requests I get is for an installer.

I’ve resisted this, mainly because it’s only 4 files. I could see how useful an installer would be, but I wasn’t going to write one just to copy 4 files around. That would be like using a sledgehammer to crack a nut.

Nope. I’m going to use a nuclear bomb to crack a nut.

Instead, I thought it would be more interesting to write an extension manager for ReSharper, based on NuGet. In other words, package ReSharper plugins as NuGet packages, and deliver and manage them in the same way – so you can browse, install, update and uninstall, just like assembly reference NuGet packages.

Something like this:

image

Before we go any further, I need to point out that this is not a finished product – it is very much an experimental ALPHA version. It works, but only just.

It can do the basics just fine – it can browse and install, uninstall and update plugin packages. They’re stored in a nuget repository in your local profile, and get automatically loaded at startup.

The big thing that’s missing is server support. The “Online Gallery” does NOT talk to a server, and is HARDCODED to point at C:\rsrepo.

It’s also missing other useful stuff like error handling, displaying license and progress dialogs and so on.

But it’s functional enough to give a tyre-kicking to, and I’d appreciate the feedback. ReSharper 6.0 only for now.

Here’s what you need to do to get up and running (please read carefully – this is alpha quality!):

  1. Download the zip file from the github downloads page
  2. Extract the contents – you’ll find a .vsix file and 3 .nupkg files
  3. Double click the .vsix file. This will install the plugin (in the future it will be on the Visual Studio Gallery, making this much easier)
  4. Create the C:\rsrepo folder and copy the .nupkg files into it
  5. Fire up Visual Studio
  6. Go to ReSharper –> Extension Manager to bring up the manager UI

If you go to the “Online Gallery” section of the extension manager, you should see the test packages listed. I’ve created a package for the current 6.0 release of xunitcontrib, and two versions of a sample plugin that simply adds a menu item to the ReSharper menu (it just displays a message box with the current version).

Once you’ve installed a package, you need to restart VS before the plugin will get loaded (you’re not yet prompted like NuGet does). Similarly, uninstalling or updating a plugin requires a restart (this is unavoidable – the dlls are loaded into memory and there is no way to unload them. You’ll find the same behaviour in the Visual Studio extension manager).

While you’re in the Online Gallery, you’ll probably notice that it lists all versions of the sample packages, rather than just the latest. Don’t install both versions at the same time – that will confuse things (I told you it was alpha). The two versions are there to test updating – once the oldest version is installed, going to the Updates section will list the newer as ready for updating.

So, what’s next?

Top priority is server support. I need to get a gallery working, and to be able to configure the extension manager with the server feed.

Then, a proper good tidy up – error handling, progress indicators, showing licenses, searching, sorting etc. I’d like to add support for ReSharper 5.1 and the forthcoming 6.1 EAP.

Oh, and more packages would be nice, too.

Creating a package is dead easy – just put your assembly files in an “rs60\plugins” folder. Open one of the sample packages in the NuGet Package Explorer to take a look. Or check out the samples folder in the source on github.

I’d love to hear some feedback. Let me know what you think. Leave a comment here, github or on twitter.

So, that’s how you install 4 files.

Tags:

Comments (62) -

Nordin Rahman
Nordin Rahman
10/18/2011 6:11:38 PM #

This looks interesting. Thanks!

Reply

Mike
Mike
10/18/2011 9:24:54 PM #

Interesting, but something definitely better left for Microsoft or jetbrains to handle. I can't imagine having multiple extension managers for installed add-ons. The VS extension manager It should be made so that any plugin or add in can register in the extension manager to receive extensions specifically for it.

So I hope you can share your work with Microsoft!

Reply

angol
angol
10/19/2011 11:23:08 AM #

wov...R# is cool, NuGet is cool...keep up the good work!

Reply

Mike Murray
Mike Murray
10/20/2011 5:51:11 PM #

I think you should consider Chocolatey as well, as it is better suited to not only bringing down files to the machine but also running initialization and install tasks.

http://chocolatey.org/

Reply

Jake Ginnivan
Jake Ginnivan
10/31/2011 6:43:20 PM #

Awesome work Matt!

Just tried it out, I like it. The thing about ReSharper extensions is you are about the only person actively supporting them. Discoverability is a big thing, and I hope JetBrains helps you out with this if they are not willing to do it themselves. Least they could do is host the Gallery for you Smile

Reply

cairns commercial solar
cairns commercial solar United States
5/18/2015 2:54:50 PM #

I am an avid reader who likes engaging content. That's why I am here. Your original views on this topic are refreshing and interesting. You've done a great job of expressing your views. Thank you.

Reply

philix
philix United States
11/18/2015 7:51:14 PM #

ace web site

Reply

Philix
Philix United States
11/18/2015 10:02:47 PM #

Great Website

Reply

philix
philix United States
11/20/2015 5:24:47 PM #

Great Website

Reply

philix
philix United States
11/27/2015 6:16:49 PM #

Nice Web Site

Reply

Janine Norwood
Janine Norwood United States
1/6/2016 3:03:51 PM #

AWESOME!Can't wait for that, will be something to want to accomplish day by day, to do something AWESOME!

Reply

Isreal Payor
Isreal Payor United States
1/15/2016 3:43:50 AM #

the style of keeping you connected with so many things of different types is awesome and you find it interesting everytime.

Reply

Arnulfo Rametta
Arnulfo Rametta United States
1/15/2016 3:47:54 AM #

Thaaaat IS awesome! lol hehe

Reply

Stanley Tocci
Stanley Tocci United States
1/15/2016 4:13:09 AM #

Congrats! This is such a great website, I know it will translate well into book form. Which is AWESOME!

Reply

Joseph Vogel
Joseph Vogel United States
1/15/2016 4:33:44 AM #

yeah, except the "dolphin saving you" one

Reply

Loren Benward
Loren Benward United States
1/15/2016 5:45:23 AM #

Congratulations on your success! You deserve it for brightening all of my work days with something to be excited about.

Reply

Marylynn Okoro
Marylynn Okoro United States
1/15/2016 5:53:57 AM #

Congratulations, Neil! I love this site and I know I'll love the book. Christmas, birthdays, Father's Day 2010  check!

Reply

Loida Shaneyfelt
Loida Shaneyfelt United States
1/15/2016 7:06:39 AM #

Printing out an essay or paper, reading the first line and realizing there aren't any mistakes.<br />AWESOME!

Reply

Wilton Megeath
Wilton Megeath United States
1/15/2016 7:14:20 AM #

Congrats! This is such a great website, I know it will translate well into book form. Which is AWESOME!

Reply

Janita Wendelin
Janita Wendelin United States
1/15/2016 7:44:47 AM #

Congratulations, Neil! I love this site and I know I'll love the book. Christmas, birthdays, Father's Day 2010  check!

Reply

Loida Shaneyfelt
Loida Shaneyfelt United States
1/15/2016 8:27:41 AM #

Let me be the first to say: Congrats, Neil! I've been following this site from day one, and have loved every single day of awesomeness that it has delivered. You deserve all the success coming your way. Keep it up!AWESOME!

Reply

instant high pr backlinks
instant high pr backlinks United States
2/10/2016 12:44:11 AM #

Famous! This is simply amazing! Not simply high quality, but additionally important details. And that is uncommon to come by these days! I have to claim that I am truly amazed and also will undoubtedly come back once again if you keep up the quality and worth of the material at this level, and even acquire it on the following degree. Seriously, from the bottom of my heart, thanks for your time! God bless!

Reply

POŻYCZKA
POŻYCZKA United States
6/23/2016 8:02:57 AM #

pożyczki pozabankowe

Reply

Rejestracja Domen
Rejestracja Domen United States
6/25/2016 6:15:07 AM #

BEZPŁATNE KONTO HOSTINGOWE 5GB DLA KAŻDEJ REJESTRACJI NOWEJ POLSKIEJ DOMENY!

Reply

rejestracja domen
rejestracja domen United States
6/25/2016 6:15:08 AM #

Odzyskiwanie domen

Reply

Todd Mulgrew
Todd Mulgrew United States
7/20/2016 7:43:06 AM #

Take my word for it, it's not as easy as you think

Reply

Adelle Paules
Adelle Paules United States
9/27/2018 5:44:00 PM #

I am extremely impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you modify it yourself? Anyway keep up the nice quality writing, it?s rare to see a great blog like this one these days..

Reply

Tammara Lichenstein
Tammara Lichenstein United States
9/28/2018 3:03:15 AM #

you could have an amazing weblog here! would you like to make some invite posts on my weblog?

Reply

Terence Nishihara
Terence Nishihara United States
9/28/2018 5:37:55 AM #

Yesterday, while I was at work, my sister stole my apple ipad and tested to see if it can survive a twenty five foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views. I know this is entirely off topic but I had to share it with someone!

Reply

Maile Gubitosi
Maile Gubitosi United States
9/28/2018 8:55:57 PM #

Loving the  information on this website  , you have done  outstanding job on the  articles .

Reply

Jacob Tanzosch
Jacob Tanzosch United States
9/29/2018 2:55:05 AM #

After study a number of the blog articles on your own site now, we truly such as your technique of blogging. I bookmarked it to my bookmark web site list and you will be checking back soon. Pls check out my website at the same time and tell me if you agree.

Reply

Antonio Siemens
Antonio Siemens United States
9/29/2018 12:18:02 PM #

It's the best time to make some plans for the future and it is time to be happy. I have read this post and if I could I want to suggest you some interesting things or advice. Perhaps you can write next articles referring to this article. I want to read even more things about it!

Reply

Mitch Delfin
Mitch Delfin United States
9/29/2018 3:04:28 PM #

Hi, i think that i saw you visited my website thus i came to ?return the favor?.I'm trying to find things to enhance my web site!I suppose its ok to use some of your ideas!!

Reply

Gordon Hohmann
Gordon Hohmann United States
9/29/2018 9:40:20 PM #

This in turn submit usually redeem much website. How you would market it? The item provides fine specialized perspective attached to situations. Just maybe providing whatever actual alternatively good to offer home elevators is the central factor.

Reply

Aitana
Aitana United States
9/30/2018 2:51:50 AM #

Tienes cuenta de youtube?

Reply

Carmelo Legge
Carmelo Legge United States
9/30/2018 4:01:16 AM #

I went over this  internet site  and I  believe  you have a lot of  fantastic  info  , bookmarked  (:.

Reply

comprar likes
comprar likes United States
9/30/2018 12:33:16 PM #

comprar visitas

Reply

水清新
水清新 United States
10/8/2018 4:15:36 PM #

介紹ELEGANCE彩妝系列。

Reply

聊天機械人
聊天機械人 United States
10/8/2018 11:45:41 PM #

個人化網路廣告

Reply

Pierre Schwander
Pierre Schwander United States
10/9/2018 2:45:51 AM #

Oh my goodness! an amazing article dude. Thanks However I am experiencing subject with ur rss . Don’t know why Unable to subscribe to it. Is there anyone getting identical rss drawback? Anyone who is aware of kindly respond. Thnkx

Reply

Edmund Blaida
Edmund Blaida United States
10/9/2018 9:31:28 AM #

you've gotten an incredible blog here! would you wish to make some invite posts on my weblog?

Reply

香港物業按揭. 無論您是首次置業或是換樓,工銀亞洲都能夠為您提供度身訂做的按揭貸款計劃,切合您的真正需要。 全面樓宇按揭服務. 一般按揭貸款計劃. 適合購買 ...

Reply

Savanna Coldivar
Savanna Coldivar United States
10/9/2018 7:59:37 PM #

Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you can do with a few pics to drive the message home a little bit, but other than that, this is wonderful blog. An excellent read. I will certainly be back.

Reply

Kelley Studivant
Kelley Studivant United States
10/10/2018 1:35:15 AM #

Great blog! Do you have any helpful hints for aspiring writers? I'm planning to start my own site soon but I'm a little lost on everything. Would you advise starting with a free platform like Wordpress or go for a paid option? There are so many choices out there that I'm totally overwhelmed .. Any suggestions? Appreciate it!

Reply

Molly Plack
Molly Plack United States
10/10/2018 10:28:40 AM #

Wonderful work! That is the type of info that should be shared across the net. Disgrace on the seek engines for no longer positioning this put up upper! Come on over and consult with my website . Thank you =)

Reply

Angle Hindsman
Angle Hindsman United States
10/11/2018 9:04:49 AM #

The very heart of your writing whilst sounding agreeable at first, did not settle well with me after some time. Someplace within the paragraphs you actually managed to make me a believer unfortunately only for a short while. I nevertheless have got a problem with your leaps in logic and one might do well to fill in those gaps. When you actually can accomplish that, I would certainly end up being fascinated.

Reply

Amanda Longstreet
Amanda Longstreet United States
10/11/2018 1:37:09 PM #

Hey there! This post could not be written any better! Reading through this post reminds me of my good old room mate! He always kept chatting about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!

Reply

Jacob Burnsworth
Jacob Burnsworth United States
10/11/2018 6:04:46 PM #

Definitely believe that which you stated. Your favorite reason seemed to be on the web the easiest thing to be aware of. I say to you, I certainly get irked while people think about worries that they just don't know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people could take a signal. Will probably be back to get more. Thanks

Reply

Kyla Crowin
Kyla Crowin United States
10/12/2018 3:49:26 AM #

Hey I am so happy I found your blog page, I really found you by error, while I was looking on Digg for something else, Regardless I am here now and would just like to say thanks a lot for a tremendous post and a all round interesting blog (I also love the theme/design), I don’t have time to browse it all at the moment but I have saved it and also included your RSS feeds, so when I have time I will be back to read more, Please do keep up the great work.

Reply

ADDICTION 奧可玹 【BASE MAKEUP】晴癮粉底液SPF12PA++ THE FOUNDATION SPF12PA++的商品介紹   ADDICTION 奧可玹,BASE MAKEUP,晴癮粉底液SPF12PA++ THE FOUNDATION SPF12PA++       

Reply

Jaymie Gair
Jaymie Gair United States
10/13/2018 11:37:07 PM #

we have different sectional sofas at home, i find them very comfortable and easy to setup’

Reply

Errol Kubaska
Errol Kubaska United States
10/15/2018 1:08:50 AM #

Hey, you used to write fantastic, but the last several posts have been kinda boring… I miss your super writings. Past few posts are just a little out of track! come on!

Reply

納米電流
納米電流 United States
10/18/2018 10:22:47 AM #

改善肌膚保濕,並能長時間保持充足水分,促進具彈性和充分滋潤的水嫩肌膚。 中性肌膚使用

Reply

Robt Toyne
Robt Toyne United States
10/19/2018 3:03:40 AM #

I have read some good stuff here. Certainly worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative web site.

Reply

Harvey Depena
Harvey Depena United States
10/19/2018 8:52:27 PM #

Very nice info and right to the point. I am not sure if this is actually the best place to ask but do you guys have any thoughts on where to hire some professional writers? Thanks Smile

Reply

Shae Minnier
Shae Minnier United States
10/20/2018 9:34:10 AM #

Hey there! Someone in my Facebook group shared this website with us so I came to check it out. I'm definitely enjoying the information. I'm bookmarking and will be tweeting this to my followers! Superb blog and terrific design and style.

Reply

【保養】告別乾爭爭    Caudalie Premier Cru 葡萄籽尊貴時光逆轉系列 - Katerina的花俏部落格 •Beauty •Fashion •Lifestyle  【保養】告別乾爭爭    Caudalie Premier Cru 葡萄籽尊貴時光逆轉系列, Katerina的花俏部落格 •Beauty •Fashion •Lifestyle: 【保養】告別乾爭爭    Caudalie Premier Cru 葡萄籽尊貴時光逆轉系列, Katerina的花俏部落格 •Beauty •Fashion •Lifestyle

Reply

Eldon Buhler
Eldon Buhler United States
10/20/2018 11:59:42 PM #

It’s actually a great and helpful piece of info. I’m glad that you shared this helpful information with us. Please keep us up to date like this. Thanks for sharing.

Reply

Nickolas Merl
Nickolas Merl United States
10/24/2018 2:05:05 AM #

I've been absent for some time, but now I remember why I used to love this web site. Thanks , I’ll try and check back more frequently. How frequently you update your web site?

Reply

Granville Reaper
Granville Reaper United States
11/7/2018 12:00:45 AM #

Throughout this awesome design of things you actually get  a B+ with regard to effort. Where you confused us was first in all the facts. As as the maxim goes, details make or break the argument.. And it couldn't be more correct here. Having said that, permit me tell you what did deliver the results. Your authoring is certainly extremely engaging and this is probably the reason why I am taking the effort in order to comment. I do not make it a regular habit of doing that. Secondly, whilst I can easily see a leaps in logic you come up with, I am definitely not convinced of exactly how you seem to unite the details which inturn produce the actual conclusion. For right now I will subscribe to your point however wish in the near future you connect the dots much better.

Reply

Annemarie Alexaki
Annemarie Alexaki United States
11/10/2018 4:54:44 PM #

As I web site possessor I believe the content material here is rattling fantastic , appreciate it for your hard work. You should keep it up forever! Good Luck.

Reply

Rory Cradle
Rory Cradle United States
11/11/2018 6:19:24 PM #

Nice read, I just passed this onto a friend who was doing a little research on that. And he actually bought me lunch since I found it for him smile Thus let me rephrase that: Thanks for lunch!

Reply

Pingbacks and trackbacks (1)+

Add comment

biuquote
  • Comment
  • Preview
Loading

Rel=Me

Month List

RecentComments

Comment RSS