resharper

How do I stop ReSharper from maintaining classes namespaces to correspond a folder?

If I place a class file into a folder, the folder's name is appended to the namespace, even if I set "Namespace Provider" property of the folder to False. If I then rename the namespace back, ReSharper underlines it suggesting to change it according to the class file location. How do I suppress this behaviour? I use ReSharper 5 and Visua...

nullable type and a ReSharper warning

I have the following code: private static LogLevel? _logLevel = null; public static LogLevel LogLevel { get { if (!_logLevel.HasValue) { _logLevel = readLogLevelFromFile(); } return _logLevel.Value; } } private static LogLevel readLogLevelFromFile() { ... } I get a ReSharper w...

Productivity features in VS, how to display documentation

I used to program quite a lot in Java, recently I've began to work with C#. I think that most of advantages of C# (comparing to Java) are corrupted by VS. Now what really makes me crazy is intelisence. It offers only list of classes of that are already in "using". I would like to see suggestions of all classes from all libraries. Then,...

ReSharper 5 external sources in a .NET 4.0 project

I've read about the ReSharper external sources feature in ReSharper 5. But when attempting to use it on a .NET 4.0 project, but my attempts to make it work / use it have failed. Whenever I attempt to navigate to "Sources from Symbol Files" - I just get the message that the symbols are not available. Are the debug symbols for .NET 4 no...

Does resharper add any kind of code refactoring to VS that Eclipse doesn't have?

And if so are there Eclipse plugins that add those types of code refactoring to eclipse? note:for C#/Java respectively. ...

NUnit+ReSharper: How to view results for TestFixture with different parameters?

Hi all! I have written unit tests under NUnit that use TestFixtures with different parameters. Now, when I run tests, I want to see with which parameters test has been passed and with which hasn't. Unfortunately, ReSharper shows only "Test failed: Child test failed" and no more information. Is there any way to see which parameters hav...

ReSharper: 'Name' attribute is not allowed here; use 'x:Name' instead in XAML

ReSharper's complaining about some of my XAML with the following error: 'Name' attribute is not allowed here because type 'FlashingTextBlock' is implemented in the same project. Use 'x:Name' instead What's the problem here? Should I do what it says? ...

How do I upgrade ReSharper 4.5 settings to ReSharper 5.0 settings

I've recently upgraded my code from Visual Studio 2008 .NET 3.5 to Visual Studio 2010 .NET 4.0. I've used ReSharper 4.5 and now I'm using ReSharper 5.0. I want my ReSharper 4.5 settings (the ones in .resharper file) to be upgraded to ReSharper 5.0 settings. Is there an automatic way to do it? Should I do it manually? Would just overwr...

Is there unreachable code in this snippet? I don't think so, but Resharper is telling me otherwise.

I have the following method I came across in a code review. Inside the loop Resharper is telling me that if (narrativefound == false) is incorrect becuase narrativeFound is always true. I don't think this is the case, because in order to set narrativeFound to true it has to pass the conditional string compare first, so how can it always ...

Resharper function to fix naming convention issues

A bunch of classes doesn't comply to our naming conventions for private variables. Resharper shows this as a warning, but wants me to fix all of them by hand. Is there some magic option to auto-fix these issues? 'Clean-up code' won't do anything with this. Same goes for converting properties with backing fields to automatic properties w...

Text output from tests using Visual Studio 2008 + Resharper + NUnit

I like to do console output for exploratory purposes when I am creating a unit test. Is there a way to see the Console.WriteLine("s") in Visual Studio when executing my test using Resharper? I don't keep the console output in the final version of my tests, so there is no need to comment on that. ...

How to Iterate a Resharper Template ?.

I have a small Resharper Template I have written for Null check of a function Parameter (C#). Check.IsNotNull($param$, "$param$"); - Suggest Parameter - #1 I can now null check the function paramters one by one. But I want to be able to null check all the paramters at once through a template. Is it Possible in Resharper?. Is there som...

How do I tell ReSharper that an attribute means that a method is used?

I'm playing with SpecFlow, and ReSharper thinks that my step definitions are unused (I guess because they're used via reflection): [Binding] public class StepDefinitions { // ... [When(@"I press add")] public void WhenIPressAdd() // R# thinks this is unused { _calculator.PressAdd(); } // ... } How c...

Visual studio 2010 template for new UnitTest

What ways do I have for creating a unit test template like this? I'm using visual studio 2010 and Resharper 5. using NUnit.Framework; namespace SolutionName.Core { [TestFixture] public class ClassNameTests { [Test] public void test() { } } } ...

CodeRush not working ?

I was using Resharper and I wanted to try CodeRush so I suspended Resharper and installed CodeRush Xpress. When I installed CodeRush version 2010.1.4 (from this downlad page) the shortcuts did not work. I tried F2 and other shortcuts that schold work but they did not. However I was able to invoke some CodeRush functions by clicking rig...

Visual Studio 2010 + ReSharper Not Working

I've installed ReSharper 5 on two installations of Visual Studio 2010 Professional. In both cases, ReSharper claims it has installed successfully - but Visual Studio doesn't recognize the extension. It doesn't show up in the Extensions Manager, doesn't appear in Help - About - Installed products, and can't be found anywhere else in the...

Resharper support for Silverlight Unit Test Application

HI All Is there a version of Reshaper that can be used to run Silverlight unit test. I am using Resharper 4.5 although it shows test icons against test methods in the class, but it does actually run the test. Thanks ...

Garbled fonts in Visual Studio 2005

Hello, I'm using for the time being an old VS 2005. Fonts appear to be messed up at times (see display in link below); this seems to be happening all the time with Resharper switched on but I have also seen it without Resharper being activated (typically on a line throwing an exception while debugging) although not so frequently. Would a...

How to see .net library source code with ReSharper 5 and visual studio 2010?

I used to see any .net source code (like System.String) with ReSharper and Visual Studio 2008. since I migrated to Visual studio 2010, this option doesn't give the full source code but just the definitions of the class. How can I fix this, to use the microsoft's symbols server again? Edit: Maybe the problem is only with .net-4.0 assemb...

ReSharper: find derived types constructor usages points

I have some base class ControlBase and many derived classes which also have derived classes... ControlBase and derived classes have parameterless constructor. How can I easily find all derived classes constructor invocation points? ReSharper find usages on ControlBase constructor shows only usages of this base class constructor but not d...