resharper

Resharper intellisense won't work for XAML

試著忘記壹切 提交于 2019-12-11 07:25:13
问题 The Resharper intellisense does not seem to work for me in XAML My Xaml looks like <Window x:Class="GraphicalLuaEditor.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:GraphicalLuaEditor" xmlns:nodeScriptingEditor="clr-namespace:NodeScriptingEditor

Resharper colors settings missed in VS tools/options

一曲冷凌霜 提交于 2019-12-11 06:36:34
问题 I've missed all Resharper's colors options in VS tools/options/fonts & colors (There is no entry started with "Resharper" word) Is it the way to bring them back ? 回答1: Solution found HERE: Please try clearing the HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\FontAndColors\Cache registry key. EDIT : Doesnt work for our boxes... 来源: https://stackoverflow.com/questions/1846519/resharper-colors-settings-missed-in-vs-tools-options

ReSharper formatting: disable remove spaces for anonymous object creation

你。 提交于 2019-12-11 06:23:08
问题 I'm not sure if my title is entire accurate, however, I would like to disable the feature in ReSharper formatting where it removes spaces upon formatting. The following image describes the behaviour (red = before format, green = after format) : As you can see the spaces before id and after fileId are removed, so: new { id = fileId } --> new {id = fileId} I would like to disable this behaviour, and actually (if possible) enforce the leading and trailing space. I can't find what the option is

Stylecop: Source Control the CustomDictionary.xml dictionary?

情到浓时终转凉″ 提交于 2019-12-11 04:55:16
问题 I want to place a customdictionary.xml file inside my solution directory and have it source controlled so other developers can also take advantage of this. According to this StyleCop link I have to place it next to the stylecop.dll which is under program files. It also talks about Settings.StyleCop file, which I don't seem to have. Is this per project or per solution ? The file also talks about a custom.dic, is this different to the customdictionary.xml file? 回答1: If you open the StyleCop

VS 2010 / Resharper 5 Mouse Behavior

痴心易碎 提交于 2019-12-11 03:27:41
问题 After upgrading to the above configuration I notice that 1) CTRL-Click on a type highlights the type but doesn't take me to the declaration, 2) Clicking on some closure (ie, like a method) toggles whether it's expanded or collapsed. Since these are both mouse related tasks I figure there is some setting in either VS or R# that I need to change, but I sure can't figure out what it is. Anybody know? Cheers, Berryl PS - there is an option in R# to ctrl-click to the type but I have that checked

Does Nunit TestCase attribute with Result property work incorrect?

女生的网名这么多〃 提交于 2019-12-11 03:22:14
问题 So, I wrote next "test" test :-) for Nunit 2.6 (use 2.6.0.12035 ver.) [TestCase(1, 2, Result = 3)] [TestCase(3, 4, Result = 7)] [TestCase(5, 6, Result = 11)] public int Add_Test(int a, int b) { return a - b; } Next, I run it with Resharper 6.1.37.86. Resharper shows that all three test are passed. Than I try to run test with nunit GUI - nunit.exe. Tests fall with strange error message: "Method has non-void return value". In fact all tests should fail with unexpected value of result. Does this

Generation of the designer file for xxxxx failed: Error HRESULT E_FAIL has been returned from a call to a COM component

天大地大妈咪最大 提交于 2019-12-11 02:35:46
问题 After upgrading to Visual Studio 2013, I receive the following warning when I edit the markup of an ASPX or ASCX file, and the designer file does not update with the change. I have ReSharper 8.1 installed. I have tried cleaning the solution, restarting Visual Studio, clearing the Resharper cache, and restarting my computer without any luck. 回答1: A colleague of mine ran into the same issue, he was able to resolve this but simply suspending resharper and enabling it again. 回答2: over here we

Resharper Test Runner: Could not load file or assembly 'System.Windows'

寵の児 提交于 2019-12-11 02:06:51
问题 I have an issue with VS2012 and Resharper 7.1.2 at the moment to run unit tests (Nunit). The complete error message is here: Unit Test Runner failed to run tests: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture =neutral, PublicKeyToken= 7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified." I have upload the last version of Resharper (7.1.2) and i tried use vs2010 but the problem is there yet. Any

Resharper intellisense suggests wrong path in MVC 6

删除回忆录丶 提交于 2019-12-11 00:36:23
问题 Here is my solution: I want to import site.css . I know the correct path is: <link rel="stylesheet" href="~/css/site.css" /> . But as you can see, Resharper is suggesting me a different path. Follow Resharper intellisense, the path would be: <link rel="stylesheet" href="~/wwwroot/css/site.css" /> . This is a wrong path, and the file will not be imported. So, my question is: how can I fix this in Resharper? How to let Reshaper know that it shouldn't include wwwroot in the path? I'm using

Plugin for R# similar to CodeRush “statement highlight”

三世轮回 提交于 2019-12-10 23:38:33
问题 See here http://www.hanselman.com/blog/InSearchOfThePerfectMonospacedProgrammersFontInconsolata.aspx - for want of a better description - the statement block highlighting - eg in the pics on the link the "statement blocks" are grouped with a vertical line. I understand this is a feature of CodeRush - does R# have either anything similar, or a plugin to do the same? 回答1: I use the latest version of ReSharper that is currently available — ReSharper 4.5 — but unfortunately I don't believe there