Questions tagged [resharper-2016]
19 questions
96
votes
2 answers
ReSharper Error: "The output has reached the limit and was truncated. To view the full output use 'Show Stack Trace in a new window' action."
When running unit tests in ReSharper, if the output is too long, it gives this error:
The output has reached the limit and was truncated.
To view the full output use 'Show Stack Trace in a new window' action.
Update
ReSharper fixed this issue in…

Contango
- 76,540
- 58
- 260
- 305
30
votes
7 answers
Surround code block with curly braces?
Is there a shortcut to surround a given (selected) code block with curly braces?
VS 2015 + R# 2016.1

D.R.
- 20,268
- 21
- 102
- 205
7
votes
1 answer
C# is operator with nullable types always false according to ReSharper
I'm attempting to convert an object to a bool type and want to convert bool and Nullable types. I also want to make sure I make the appropriate casts where possible. So I have the following code:
if (value is bool)
{
boolValue = (bool)…

Ben Russell
- 127
- 1
- 6
4
votes
1 answer
Cannot find element for dotnet test id: error in Resharper 2016.3
I just downloaded Resharper 2016.3 EAP 4 to check out the Unit test functionality with .NET Core. But when I run all unit tests, I get this error:
Cannot find element for dotnet test id:
MvcMovieTests.SimpleTests.TestMethodPassing
Cannot find…

Ray
- 4,679
- 10
- 46
- 92
3
votes
0 answers
ReSharper is not detecting use of some ES6 features when configured for ES5
I work at a company where we use ReSharper 2016 extensively to inspect and refactor our C# code, and we would now like to use those same tools to ensure the quality of our javascript.
We're supporting IE, so ES6 features are out, however when the…

Alfie Woodland
- 834
- 11
- 30
3
votes
1 answer
Ignore only certain CSS classes in Resharper
With Resharper 2016.3, the mechanism to identify unused CSS classes has been improved. This is great, but it comes with a downside:
We use CSS classes with a special prefix (js-) to mark elements that we need to find from javascript, e.g. from…

theDmi
- 17,546
- 6
- 71
- 138
3
votes
3 answers
(Why) is invoking as extension method the preferred...way?
I am in the process of resharpening my solution, using the just-released version of Resharper (2016.2.2)
It flags this line of code:
ReportRunnerConstsAndUtils.ConvertValueToAppropriateTypeAndAssign(totalPackagesCell, packages);
...intimating that…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
2
votes
1 answer
How to configure Resharper File Layout to sort members inside existing Regions?
I have been able to successfully configure my c# File Layout to sort members the way I want them to with the exception of members inside of existing regions.
Is it possible to make this configuration? I think this question: How to group properties…

Jay Cummins
- 1,039
- 2
- 14
- 31
1
vote
1 answer
Whys doesn't Visual Studio skip auto-entered closing paren when I type over it?
I'm a longtime user of Visual Studio and Resharper, but have recently upgraded both (VS 2015, Resharper 2016.2).
For years now, when I am typing along in VS, and I enter an opening brace or paren or quote, it inserts the closing one just after, and…

Timothy Blaisdell
- 129
- 8
1
vote
1 answer
VS 2015 Task runner explore and Resharper build
I have a small problem I hope someone have an idea how to solve.
I have a setup where I wan't the Task runner explore to execute a gulp taser after a build. This is working fine when using VS to build. But I would like to switch to ReSharper build.…

Mikkel Nielsen
- 792
- 2
- 13
- 36
1
vote
1 answer
What do the green underscores in the Script section of my cshtml indicate, and how can I ungreenify them?
In Visual Studio (2013, if it's significant) I see this in the "Scripts" section of a .cshtml file:
The green undersscores may actually be being rendered by Resharper (version 2016.1, if it's significant).
I suspect this is some sort of warning,…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
0
votes
1 answer
Resharper error running nunit tests for solution in Any CPU mode
I'm having trouble running resharper tests for my solution when targeting Any CPU. The error I'm getting is
ERROR System.IO.FileNotFoundException: Could not load file or assembly
…

Kolichikov
- 2,944
- 31
- 46
0
votes
2 answers
C++ ReSharper - generating a variable of function's return value / parameter type
Isn't there a ReSharper 2016 C++/VisualAssist X C++/VS 2015 shortcut for generating a variable of function's return value / specific parameter type?
(I'm not talking about auto, I mean the actual type)

golosovsky
- 638
- 1
- 6
- 19
0
votes
1 answer
Text colors in asp.net core/razor views bland
The text coloring on my asp.net core projects seem to default to just two or three colors - relatively bland. I've looked through all the Resharper settings but can't identify anything out of the ordinary. I just did a default installation of…

Reza
- 5,314
- 5
- 21
- 35
0
votes
1 answer
Resharper 2016.3.1 not running MSTest in VS 2017 RC
I can not to run MsTest unit tests in visual studio 2017 RC using resharper 2016.3.
I select run test in drop-down menu, but resharper not show progress running in Unit Test Session Window.
What am I doing wrong?

Alexey Anisimov
- 13
- 4