Questions tagged [resharper-6.0]

Use this tag for version specific questions about ReSharper 6.0 - the refactoring and productivity extension for Visual Studio by JetBrains. When using this tag also include the more generic [resharper] tag where possible.

ReSharper is a refactoring and productivity extension by JetBrains that extends native functionality of Microsoft Visual Studio 2003, 2005, 2008 and 2010. Version 6.0 provides various improvements over previous versions such as:

  • Support for HTML, JavaScript, CSS, and Razor view engine.
  • On-the-fly code analysis for VB.NET.
  • An improved unit test runner.
  • Decompiling functionality to assist in figuring out the behaviour of third-party libraries.
  • Converting LINQ to loops.
  • Improvements in XAML support.
  • Colour highlighting for properties representing colours and code completion visualizing colours and brushes.
  • Import types for pasted code.
  • ReSharper suggestions explained.
  • Searchable code inspection severity options.

See also:

What's New in ReSharper 6.0

89 questions
2
votes
2 answers

ReSharper - Resolving Razor views in separate assembly

I have an ASP.NET MVC 3 solution where some Views (and Controllers) are located in separate assembly (later on they are loaded via MEF). This separate assembly is a Class Library project (a .dll) and the ReSharper can't resolve the Views from inside…
Nikos Baxevanis
  • 10,868
  • 2
  • 46
  • 80
2
votes
2 answers

ReSharper errors on any CSS property with a value of 'inherit'

I recently decided to run the Resharper 6.0 "Analyze Errors In Solution" option on our web application. After several valid problems it picked up on, it has me stumped on some CSS 'errors': (disclaimer: I am not a CSS person in the slightest, only…
hanzworld
  • 1,289
  • 1
  • 14
  • 22
2
votes
1 answer

Resharper 6 upgrade broke in-IDE unit test functionality

After installing Resharper 6, none of the unit test icons in my unit test classes (I am using MbUNut and Gallio) are visible, and when I select Run Unit tests from any of the menus, Visual Studio cannot find any unit tests...
Charles Bretana
  • 143,358
  • 22
  • 150
  • 216
2
votes
3 answers

What unit testing framework will meet my requirements?

This is all i'm looking for at a high level: The ability to run unit tests from within visual studio 2008 Compatibility with some code coverage tool A unit testing framework with a row testing feature like MBUnit's RowTestAttribute Ability to…
jaminto
  • 3,895
  • 3
  • 32
  • 36
2
votes
2 answers

ReSharper - Is there any way to save code quality recommendations to a file?

I'm probably using the wrong terminology but basically I would like to dump the findings from the panel to the right of the scrollbar to a file for later review. See the screenshot below for what I mean. It's the part of the screen with the orange…
Malice
  • 3,927
  • 1
  • 36
  • 52
2
votes
1 answer

Inconsistent Resharper Installation Path

The installation path for Resharper appears different across several different computers we tried. In one, the default location was C:\Program Files (x86)\JetBrains\Installations while on other computers it was…
Ivanov
  • 37
  • 1
  • 4
2
votes
1 answer

Removing "Hints" from Inspection Results window in Resharper

with previous versions of Resharper we used to do a "Find Code Issues" command before doing a check-in. Now we updated from 6 to Resharper 7.1 and that command is showing the Hints as issues (we normally don't hide anything but set unneeded…
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
2
votes
1 answer

Access to modified closure - ref int

int count = itemsToValidate.Count; foreach(var item in itemsToValidate) { item.ValidateAsync += (x, y) => this.HandleValidate(ref count); } private void HandleValidate(ref int x) { --x; if (x == 0) { // All items are validated. …
anivas
  • 6,437
  • 6
  • 37
  • 45
2
votes
2 answers

Dependency injection through method with Resharper or DevExpress

I want to inject a dependency in one of my class and I don't know if there is a refactor in tools like Resharper or DevExpress to do that. Here is my class: public class ClassWithInjections { private Dependency _fieldInjected; } …
Samuel
  • 12,073
  • 5
  • 49
  • 71
2
votes
1 answer

Razor display template fails XHTML 1.0 Transitional validation

I am just starting with mvc3 and razor having done some mvc2 in the past and something puzzles me. I am trying to render a unordered list from a collection in my model and have done so successfully. using this code. In my view: @using…
user1308111
1
vote
0 answers

Custom resharper file-template moved to different layer doesn't show up anymore

Previously I created a custom resharper file template to create a new test class. This template worked just fine. I decided to move it to a separate layer and exported it so I could share it in my team. After importing it, the template shows up in…
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
1
vote
2 answers

Resharper test unit shortcut missing

A few months back, I used to be able to click a circle in the code margin, and the given unit test would run (attributes [TestFixture] / [Test]). Now on my VS2010, the only way to run a single unit test (NUnit is being used) is to type ctrl+alt+U…
sgtz
  • 8,849
  • 9
  • 51
  • 91
1
vote
0 answers

ReSharper 6: Go To Derived Symbols - how to Include Library Types?

I remember that in R# 5 when you hit alt-end (go to inheritor), there was a list of inheritors which included library types. And types from current solution were bold. In version 6 I'm not able to see derived types in libraries, and I can't find an…
Pavel Tupitsyn
  • 8,393
  • 3
  • 22
  • 44
1
vote
1 answer

Resharper Structural Find and Replace

I have a massive amount of repeating code that I wish to replace in the legacy code base and found Resharper's Structural Search and Replace feature to be a good match for the task. However I have problems making it match my patterns. The pattern I…
PHeiberg
  • 29,411
  • 6
  • 59
  • 81
1
vote
2 answers

Export and import resharper 6.0 settings

I've recently installed resharper 6.0. It took my long time to set up everything as I wanted. Now I want to export all this settings to another computer. I've tried this aproach without any success (might be because the computers use different…
Diego
  • 16,436
  • 26
  • 84
  • 136