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...
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...
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,...
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...
And if so are there Eclipse plugins that add those types of code refactoring to eclipse?
note:for C#/Java respectively.
...
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'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?
...
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...
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 ...
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...
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.
...
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...
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...
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()
{
}
}
}
...
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...
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...
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
...
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...
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...
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...