I am using several months ReSharper 4.5 It's very powerfull tool but use a lot of system resources and VS working very slow with it. With which tool I can replace Resharper with the same functionality. Which refactoring tool do you use?
I love Resharper, but Fxcop is free, and does some bits Resharper does.
My question is what can do more to get best out of Fxcop?
I am using VS2008, and planning to upgrade to VS2010 next March hopefully.
What is the easiest way of pulling an excisting method out of it's class and into a new class using Visual studio 2010 / Resharper?
Edit: I use Resharper version 5.
I'm a big fan of ReSharpers "cleanup code" feature. Especially the Solution wide clean up.
But I use Visual Studio's Ctrl+K+D (Format document), it formats the code slightly differed than ReSharper.
I'm on a quest to align ReSharper with Visual Studio (not the other way... because you can not share Visual Studio settings in the solution/source…
I have the following code example taken from the code of a Form:
protected void SomeMethod()
{
SomeOtherMethod(this.OnPaint);
}
private void SomeOtherMethod(Action<PaintEventArgs> onPaint)
{
onPaint += MyPaint;
}
protected void MyPaint(PaintEventArgs e)
{
// paint some stuff
}
…
I have found that there are only 3 ways to unit test (mock/stub) dependencies that are static in C#.NET:
Moles
TypeMock
JustMock
Given that two of these are not free and one has not hit release 1.0, mocking static stuff is not too easy.
Does that make static methods and such "evil" (in the unit testing sense)? And if so, why does resharper…
Possible Duplicate:
How do you convince your boss to buy useful tools like Resharper, LinqPad?
I've recently started a new job developing code in C# and ASP.Net. At a previous employer I've used ReSharper from JetBrains and I loved it. I've downloaded the free trial in my new job, as have several of my new colleagues on my…
An old work colleague used to quote his father about tools, "You have to be smarter than it."
In the code below, Resharper is telling me, "Value assigned is not used in any execution path" (pointing to the first line). If I accept its offer of help, dt is not assigned a value ("today").
Is this a case where "I have to be smarter…
When I started localizing a website the first time, I just did the localization like this:
<%= Resources.ResourceFile.ResourceName %>
and it seems to work perfectly fine. However, the ReSharper 5.0 Beta does it like this:
<asp:Localize Text="<%$ Resources: ResourceFile, ResourceName %>" runat="server">
…
I always find myself needing to enclose a block of code in curly braces { }, but unfortunately that isn't included in the C# surround code snippets, which seems to be an oversight. I couldn't find anything on building your own surround snippets either (just other kinds of snippets).
I am actually running Resharper too,…
Possible Duplicate:
Use of var keyword in C#
I have ReSharper, which is a pretty good tool to remind me of some good programming practices..
for example it always recommends that I use the most narrowed convention I can use when passing variables to functions (such as recommending IEnumerable instead of List when…
I always find myself needing to enclose a block of code in curly braces { }, but unfortunately that isn't included in the C# surround code snippets, which seems to be an oversight. I couldn't find anything on building your own surround snippets either (just other kinds of snippets).
I am actually running Resharper…
CThru.Silverlight can't find dependent libraries Typemock.Isolator.VisualBasic & Typemock.ArrangeActAssert of Version=6.0.2.0
but there are versions 6.0.3.0 of these libraries registered.
Any workaround?
Where to download Typemock 6.0.2.?
TIA
I have two versions of a project. One for Silverlight and one for .NET. The SL project has the vast majority of the code base in it. I want to globally add all files from the SL project into the .NET version as linked files. I've managed to do so successfully like this in the csproj file for the .NET version:
…
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…
How do you send alt-insert (resharper 'generate' keyboard shortcut) over an RDC connection from a macbook pro keyboard? I'm using CoRD as my RDC client if that matters. I've seen fn+m and fn+enter online as suggestions for the insert key, but neither seems to work for me.
Does Visual Studio / Resharper support this? By refactor copy I mean to be able to enter new class name in some dialog, and to have the tool do all the refactoring (renaming) for you. No Copy of ... file names, and no error upon having two classes with same name in the project.
Netbeans does this…
How do I output coloured text from by unit tests in the Unit Test Session window in Visual Studio. I am using Resharper VS addin which I think produces the Unit Test Window.
I am using this with nunit and wish to use c# Console.Write to generate coloured text to this window.
This should seem simple enough, but can't figure it out.
I was porting a project out of MonoDevelop and into VS2008, but I accidently created the project as VB.NET instead of C#. Now ReSharper and any syntax highlighting is throwing a fit because it's trying to validate it as VB.
How do I tell…
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()
{
}
}
}
Is it possible in Visual Studio 2008, either with or without Resharper, to re-order methods in a class file to match the order of methods in an associated interface file? What about the opposite (re-ordering the interface to match the implementing class)?
In this post, well take a straight forward procedure based set of code and convert it to LINQ using a ReSharper from JetBrains suggestion. Ive found that in general, when I do things with foreach syntax, there is often a better way in Linq to do this. The better does not jump…
Hi
I'm using Gallio\MbUnit 3.1 with ReSharper and Visual Studio 2008. Everything is working well except this type of test:
[Test]
[Row("test@badEmail@_test.com")]
[Row("test@badEmail@_test.")]
public void IsValidEmail_Invalid_Emails_Should_Return_False(string…