in

 

GrabBag<T>

ReSharper in VS 2008

UPDATE 11/26/2007

Jeffrey Palermo notes that you can use R# in VS 2008 by turning off a couple of features.

Ilya Ryzhenkov, product manager at JetBrains, gives detailed information on R# support in VS 2008 and talks about R# 4.0.

After installing VS 2008 Team Suite yesterday, I thought I'd try the ReSharper 3.0 for VS 2008 download.  The verdict?  Works great unless you use any C# 3.0 feature.  Here's one example of it blowing up (but not crashing):

I'm using:

  • var keyword
  • anonymous types
  • LINQ

That was a simple LINQ query to count the number of types in the .NET Framework that implement IDisposable and end in the word "Context" (to settle a bet).  Here's another example:

That's an experimental API for pre- and post-conditions (for pseudo-design-by-contract) that uses:

  • extension methods
  • lambda expressions

From JetBrains' website, they clearly state in the download page:

ReSharper 3.0 for Visual Studio 2008 (Codename "Orcas") only supports C# 2.0 and Visual Basic .NET 8 language features. C# 3.0 will be supported in the next major release of ReSharper.

Now I have a dilemma.  Using Visual Studio without ReSharper is like taking a trip in a horse and buggy instead of a car.  Sure, it'll get you there, but you'll have to deal with a lot of crap along the way.  Until R# v.Next comes out, I'll just have to deal with it.  If you're using VS 2008, don't install R# 3.0 if you plan on using C# 3.0.  Hopefully it'll come out soon, but I haven't seen any roadmaps yet, so I'll just wait.

Published Nov 20 2007, 02:21 PM by bogardj
Filed under:

Comments

 

Jason Meridth said:

According to the JetBrains rep on the Alt.Net yahoo group, the next release is 1st Qtr 2008 (ReSharper 4.0).

November 20, 2007 4:23 PM
 

bogardj said:

I really wish that google groups and yahoo groups weren't blocked by the firewall at work...thanks for the heads up!

November 20, 2007 5:07 PM
 

Jeffrey Palermo said:

I'd recommend installing 3.0.2 anyway.  When you get into the C# 3 features, you can modify the options of R# to us VS intellisense instead of R# intellisense, and if you get really annoyed with all the red, then you can turn off on-the-fly code analysis.  At that point, the red goes away, the lightbulbs go away, but you can still use all the goodness like extract method, rename, move, code navigation, and. . . everything.

I have 3.0.2 installed with VS2008

November 21, 2007 10:38 AM
 

Jeffrey Palermo [MVP] said:

There is a bit of confusion out there because R# 3.0.2 doesn&#39;t immediately support code analysis

November 21, 2007 11:18 AM
 

kristel said:

Is there anyway I could get ReSharper to recognize my simple ASMX web service?

My app builds but Intellisense doesn't work.

December 2, 2007 9:24 PM
 

bogardj said:

@kristel

Are you using Web Site projects?  I have lots of issues with R# and web site projects.  You might try switching to web app projects.

Otherwise, I'd suggest heading to the R# forums and FAQs.  Googling "resharper asmx" got quite a few hits.

December 3, 2007 10:50 AM
 

PaulC said:

i would recommend against using R# with 2008, until 4.0 is out.  i love R#, but it makes 3.5 development painful.  typing out the var keyword is nearly impossible, as R# will try to autocomplete to other objects that it is aware of.

you could customise R#, but why install somthing to disable all of the features?

December 19, 2007 3:30 PM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About bogardj

I'm a senior consultant with Headspring Systems in Austin, TX. My focus is using .NET technologies together with Agile methodologies. Back in 2005, I drank the Agile punch and haven't looked at a waterfall the same since.
Copyright Los Techies 2007. All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems