Questions tagged [resharper-7.1]

ReSharper is a refactoring and productivity extension by JetBrains that extends native functionality of Microsoft Visual Studio 2003, 2005, 2008, 2010, 2012 and 2013. Use this tag for questions referring specifically to version 7.1 of ReShaper.

ReSharper 7.1 is a free upgrade for everyone who owns a ReSharper 7 license or a ReSharper 6 license purchased since June 1, 2012.

ReSharper 7 officially supports Visual Studio 2012, 2010, 2008 SP1, and 2005 SP1.

ReSharper is available for download as a single package that includes all three editions. Depending on the license key used, the Full, C# or VB.NET Edition will be activated automatically. During evaluation, Full Edition is activated by default but you can switch to another edition in the License Information dialog box (ReSharper | Help | License Information.)

Download page

75 questions
1
vote
2 answers

Azure unit test fails in MSTest but passes in Resharper

I am working on a large Azure (SDK 2.0) based project that contains 1000+ unit tests. A few hundred of them are failing with a TypeInstanceInitializerException when RoleEnvironment.IsAvailable is called, but only if run with the Visual Studio Test…
superstator
  • 3,005
  • 1
  • 33
  • 43
1
vote
1 answer

Resharper 7 - vbhtml support?

Is it possible to allow vbhtml support using Resharper 7 (latest stable version 7.1.3000.2254) in Razor files? My new customer uses VB.NET accross all their applications, and i cannot seem to get Resharper's Razor syntax refactoring and tools…
Matthew Perron
  • 6,201
  • 2
  • 21
  • 24
1
vote
1 answer

Forcing Single line comments to be output to javascript with coffeescript

I'm still fairly new to coffeescript. What I would like to do, is be able to force single line comments to be put into the generated javascript. This is so I can load script references with the jasmine test runner built into Resharper. Required…
Mitchell Lee
  • 456
  • 3
  • 14
1
vote
0 answers

Accessing selected code using ReSharper SDK

Is there any way to recognize and extract a chunk of code that has been highlighted by clicking and dragging using the ReSharper SDK?
wemblem
  • 139
  • 4
  • 14
1
vote
1 answer

Resharper 7.1 messing up Visual Studio 2012 preview feature

I've installed Resharper 7.1, and I'm getting some strange behaviour When navigating through code using F12 (go to definition), VS 2012 was usually displaying the preview tab on the upper right hand side, to avoid lots of files being open and…
Daniel Perez
  • 4,292
  • 4
  • 29
  • 54
1
vote
1 answer

Warning when method is too long?

I'm looking for a way to create a rule for StyleCop, Resharper, Visual Studio itself or at least a add in which show me a visual warning if a method is longer than X characters / longer than X lines. Anyone some working solutions?
Lucas
  • 3,376
  • 6
  • 31
  • 46
1
vote
0 answers

ReSharper 7: To property with backing field - how to specify where to declare the field?

How does one tell ReSharper not to declare backing field where first private field is, but just in place, where property is declared, just above the property declaration?
epitka
  • 17,275
  • 20
  • 88
  • 141
1
vote
0 answers

Resharper 7.1, Mixed Versions of DevExpress in VS2012 Ultimate Crashes

After a recent purchase (Apr 2013) of Resharper 7.1, although the VS IDE did not crash, The Visual Studio IDE Editor demonstrated strange behavior when refactoring code. My first instinct was to disable Reshaper refactoring since Visual Studio…
Tim P
  • 69
  • 1
  • 9
1
vote
2 answers

How to create a custom pattern to replace `as` cast with direct cast in Resharper?

I have a lot of code like this: ml = this.CriteriaList.ItemByName(SC_STATIONS) as MultiList; I'd like to replace it with ml = (MultiList) this.CriteriaList.ItemByName(SC_STATIONS); To that end, I went into Resharper Options, selected Custom…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
1
vote
0 answers

In ReSharper 7, how do I skip unit tests marked with multiple categories?

I have searched the R# documentation and the R# community at JetBrains, as well as here, but I haven't found an answer. I have something like this: an assembly marked with an Acceptance category. Some of those tests are also individually marked with…
JeffH
  • 10,254
  • 2
  • 27
  • 48
1
vote
1 answer

Why is ReSharper falsely reporting "Incorrect number of arguments"?

I'm using Visual Studio 2010, project is in VB.NET, and I have ReSharper 7.1 It is falsely reporting errors not just warnings or suggestions. lblAccountID.Text = AccountID.ToString() ReSharper is giving me an error on the ToString, telling me…
Nick
  • 4,556
  • 3
  • 29
  • 53
0
votes
1 answer

Migration problems when migrate from NUnit 2.X to NUnit 3.X

I'm using NUnit 2.X library but want to use NUnit 3.X now. I have some problems about migration from 2.X to 3.X. First i have a setup fixture class. Here is the 2.X version; using System; using System.IO; using System.Reflection; using…
Aytaç Aşan
  • 155
  • 13
0
votes
1 answer

ReSharper actions not working while editing individual file

I've been asked to make some changes to an old ASP site, and I've been editing individual ASP files in VS (I don't have the original project file). However, I'm finding that none of my favorite ReSharper actions (like Selection Extend/Shrink) are…
Pflugs
  • 772
  • 1
  • 10
  • 18
0
votes
1 answer

Missing ReSharper category for csproj properties

I want to do what is described here. As stated here, there should be a category called "ReSharper" where I can set the Localizable option. However, I can't find this option nor the category in my (web)projects properties. I've already tried to add a…
0
votes
1 answer

Don't replace for-each by LINQ query

ReSharper wants to replace for-each by LINQ queries. I don't like that, and I don't want ReSharper even suggesting it. How can I disable this? I cannot find this in the ReSharper settings. I don't want this // ReSharper disable…
Rob
  • 3,556
  • 2
  • 34
  • 53