resharper

Using 64 bit OS for .Net development in VS

My development machine ( 32 bit Windows XP) runs excruciatingly slow when I am doing .Net development in Visual Studio 2008, thanks to the installation of Resharper. So I am thinking about switching my development machine to 64 bit Windows XP. Not sure whether such a switch will speed up the development or not? 64 bit machines don't ha...

Debug.WriteLine() happening twice when running tests

I have an odd problem in VS2008 running unit tests. When I run the unit test using either Resharper or TestDriven, in either normal or Debug mode, the Debug.WriteLine("foo") lines are being carried out twice: ie. in the Output window of VS I can see each line written twice. If I step through the test, however, each line seems to be carr...

How do I get Resharper to ignore the Designer file when navigating to a class?

In Resharper, if you ctrl-click the name of a class to naviate to its definition and that has a designer fie, Resharper will ask if I want to go to the X.cs or X.Designer.cs because the class is partial. Does anyone know how to disable this annoyance so that it just goes to X.cs and ignores designer files? ...

Where do you edit the constructor template on resharper 4.1?

When I create a constructor with parameters using Resharper's 'Generate code' feature, I get something like this: public class Example{ private int _x; private int _y; public Example(int _x, int _y){ this._x = _x; this._y = _y; } } I would like to use this naming convention instead: public class...

Visual Studio 2005 - Projects disappearing

Hmmm, a new odd issue that has just started. Every now and then VS drops a whole bunch of projects from the solution. It will say at the top of Solution explorer "42 projects" when it is displaying only about 20 or so. Closing VS and re-opening it fixes this, although it is a bit of a pain as it takes a little while for the .sln to open ...

C# 'var' keyword versus explicitly defined variables

I'm currently using ReSharper's 30-day trial, and so far I've been impressed with the suggestions it makes. One suggestion puzzles me, however. When I explicitly define a variable, such as: List<String> lstString = new List<String>(); ReSharped adds a little squiggly green line and tells me to: Use implicitly type local variable ...

Does Resharper support RowTest?

Resharper doesn't recognise Rowtests, is this normal? Is there anyway to fix it? (other than splitting rowtest manually) ...

ReSharper syntax suggestion

The if keyword in the following statement is underlined in green by ReSharper: if (readOnlyFields.Contains(propertyName)) return false; return base.CanWriteProperty(propertyName); ReSharper suggests the following change: return !readOnlyFields.Contains(propertyName) && base.CanWriteProperty(propertyName); Why is this "better...

"Cannot resolve symbol" error in Visual Studio 2008?

I have started working on some code left behind by previous developers, and I'm having a strange issue with it. The code is C# in ASP.NET 2.0, and I'm using ReSharper 4.1 in Visual Studio 2008. This code compiles just fine and works in my Web app, but ReSharper is barfing on it with the message, "Cannot resolve symbol '<name of class he...

My ReSharper Gutter Icons for Unit Tests aren't showing

I've installed ReSharper 4.1 and Gallio 3.0.5, but I don't get the gutter icons for unit tests. The tests seem to run fine in the Test Explorer, but I don't have icons next to the tests in code. What could be causing this? I previously had the MbUnit 2.4 ReSharper plugin installed, but it should be uninstalled now. ...

How does VS2008+ReSharper compare to IntelliJ IDEA?

I used to be a Java user, but I moved into 100% .NET 4 years ago. Having grown accustomed to ReSharper and all the commands it offers, how does it compare to IntelliJ? Both being from JetBrains, I'd imagine they are close - but I haven't used it. (I know I can do that and answer myself, but YMMV.) Thanks; ...

Virtual member call in constructor

In my application I am running the same winform in different contexts to control visibility of buttons, enabeling of text fields and the winform header text. The way I decided to do this is simply by passing a string to the form constructor and check it with a couple of if statements that in turn contain the desired winform tweaks. if (...

Is it possible to cast a delegate instance into a Lambda expression?

Here the context for my question: A common technique is to declare the parameter of a method as a Lambda expression rather than a delegate. This is so that the method can examine the expression to do interesting things like find out the names of method calls in the body of the delegate instance. Problem is that you lose some of the int...

Code suggestions by Resharper making code less readable?

While trying to get to all green, i got the following suggestion by Resharper. Original code: static public string ToNonNullString(this XmlAttribute attr) { if (attr != null) return attr.Value; else return string.Empty; } Suggestion: remove redundant 'else' resulting in following: ...

How to get Resharper to use Visual Studio's snippets

I installed Resharper in VS2008 and it seems to have taken over some of the snippets I've come to rely on. For instance, prop, foreach, etc... How can I tell Resharper to let VS2008 use its own snippets or at least not to overwrite snippets that already exist. Better yet, is there a way to selectively tell Resharper which snippets it ca...

NBehave story output in resharper

Hi, I wrote a bunch of stories using NBehave. Now I have seen examples where the output is display in human readily format (see this example). Is there any way to get this output in resharper? Many thanks in advance, Florian ...

Getting the most out of Resharper - good tutorials/screencasts

I've just installed Resharper, and I really don't know how to use it "correctly". I noticed that there are some demos and documents at their website, but I'm wondering.. ..how did you learn to use it efficiently? Are there any other good resources(demos/tutorials)? ...

Get correct indentation in Resharper

Right now resharper formats our code like this: private readonly List<Folder> folders = new List<Folder> { new Folder() }; but I want it to look like this: private readonly List<Folder> folders = new List<Folder...

VB.Net Interface Visual Studio 2008 font color settings

Is it possible to change the color of the font that Interface Names appear in using VB.Net and Resharper/VS2008? I have been successful changing the interface Names in C# but no luck with VB :( ...

ReSharper - Null Assignment Issue

JetBrains ReSharper Issue We have the following C# code where we are populating an imagelist from an image resource file. ReSharper is indicating "Possible "null" assignment to entity with "NotNull" attribute". The issue would indicate to us that we simply need to check to ensure that our ResMan_Graphics is not null but when we put a c...