resharper

ReSharper cannot resolve symbol

不想你离开。 提交于 2019-12-03 07:17:45
I'm currently building an ASP.NET 5 (ASP.NET Core 1.0) MVC application. I'm using Visual Studio 2015 with ReSharper Ultimate 10.0.2. I currently have a 2-tier layer solution which consists of a Www (web application) and a Services layer. The Www has a reference to the Services layer. When ReSharper is suspended , the classes within the Www layer are able to invoke objects from the Services layer, as shown here: However, when ReSharper is enabled , I get the following message: Cannot resolve symbol 'Services' , as shown here: What I've tried: Clearing the caches from Tools -> Options ->

Is there a way to emulate ReSharper's “extend selection” feature in Vim?

假装没事ソ 提交于 2019-12-03 07:09:51
ReSharper has a nice feature called "extend selection": by pressing CTRL+W (I think this is the default) repeatedly, you select more and more from your current caret location. First it's a word, then more and more words, a line, inner then outer block of lines (for example an if-block), then a function, etc... Basically, by pressing the key combination repeatedly, you can end up selecting the entire file. I'm sure at least some of you will be familiar with it. I have just started learning all the intricacies of vim and I don't have enough experience to see how something like this could be

Resharper C# Formatting Style shows “new” on new line instead of same line when chopping long lines

ぃ、小莉子 提交于 2019-12-03 07:01:53
So Resharper is putting a line break before the "new" in my code when re-formatting it as follows: var foo = new Foo { Bar = null, Baz = new Baz { Bap = null, Bork = null, Help = new PweaseHelp { Korben = null, Dallas = null, Multipass = null }, Me = new ClearlyMyAbilityToUnderstandResharperSettingsIs( null), } }; But I'd really like it too do this: var foo = new Foo { Bar = null, Baz = new Baz { Bap = null, Bork = null, Help = new PweaseHelp { Korben = null, Dallas = null, Multipass = null }, Me = new ClearlyMyAbilityToUnderstandResharperSettingsIs(null), } }; I've delved though all the

How to resolve incorrect “Ambiguous reference” from ReSharper on class inheritance?

Deadly 提交于 2019-12-03 06:42:21
问题 In my project I have a class that is inherited by many other classes. We'll call it ClassBase. public class ClassInheritFromBase : ClassBase When ClassBase is being inherited, ReSharper throws an "Ambiguous reference" warning on the ClassBase, and anything inside the new class that inherited from ClassBase does not have IntelliSense and gets warnings that it cannot find it. The project compiles and runs fine. If I change the namespace ClassBase is in and then change the inheriting classes,

Resharper multiline method invocation parenthesis alignment

自古美人都是妖i 提交于 2019-12-03 06:40:32
问题 Resharper is formatting multiline method calls like this: foo.Bar( x, y ); I would prefer it to align the closing parenthesis with the first line e.g.: foo.Bar( x, y ); I've looked through the Resharper code layout options, but cannot see the right setting. Can someone tell me how to achieve this alternative formatting? 回答1: In Visual Studio, go to Resharper > Options > Languages > C# > Formatting Style > Other > Indentation > Continuous line indent multiplier and set it to 0. 回答2: Can I

How to change ReSharper unit test architecture to x64?

爱⌒轻易说出口 提交于 2019-12-03 06:37:10
In VS2012, I resolved a BadImageException from running a unit test by going to: TEST-> TEST SETTINGS -> DEFAULT PROCESSOR ARCHITECTURE -> x64. This works in the built in Visual Studio test window but I cannot find the equivalent settings for ReSharper and so I cannot run the unit tests by clicking on the little nodes to left of the test. This is obviously not critical but really annoying. Does anyone know where these settings are? ReSharper will run tests with the bit-ness of the test project. So if your test project is AnyCpu, it will run in an AnyCpu host process, which means 32bit on a

Using ReSharper, how to show debug output during a long-running unit test?

大城市里の小女人 提交于 2019-12-03 06:32:49
问题 I'm using xUnit with the ReSharper test runner and the xUnitContrib resharper plugin. When I have a long-running test, I'd like to be able to output some progress indicator to the Unit Test Output window. I've tried Debug.WriteLines , Trace.WriteLine and Console.WriteLine . All of which have the same behavior - nothing shows in the output window until the test has completed. For example: [Fact] public void Test() { Debug.WriteLine("A"); Trace.WriteLine("B"); Console.WriteLine("C"); Thread

Uninstall of CodeRush and ReSharper - Intellisense Not Working

你离开我真会死。 提交于 2019-12-03 06:30:52
问题 Install order: Visual Studio 2008 ReSharper Uninstall ReSharper CodeRush with Refactor Pro Uninstall CodeRush with Refactor Pro Now my intellisense doesn't work. Any settings I should look at before I try a uninstall / reinstall? I'm sure there must be something buried in the Options that these plug-ins hook into or override. 回答1: Here are a couple of settings to check: Tools > Options > Text Editor > C# > General > Statement completion "Auto list members" and "Parameter information" should

Tool Comparison: Visual Assist X and Resharper

﹥>﹥吖頭↗ 提交于 2019-12-03 06:30:25
问题 .NET developers out there! Need your opinion here! I am now using Visual Assist X, a decent piece of software, indeed. But the .NET bloggers seem to prefer Resharper more. I might want to consider a switch over, but before that I want your guys opinion first. 回答1: Resharper is much better for C# code (and supposedly VB.Net, but I haven't tried that). Unfortunately there is no support for C/C++, so if you need that, you might want to keep Visual Assist around. They don't coexist very well,

How can I turn “Object Browser” to “Metadata” for “Go to definition” in Visual Studio 2010?

笑着哭i 提交于 2019-12-03 06:28:33
问题 Before installing Resharper, Ctrl + Left Click for Go to definition , Visual Studio 2010 uses to Metadata . After the install Resharper , when I try to first time Ctrl + Left Click, Resharper asked me with popup where I want to go, I click Object Browser for testing. Now I want to get back this setting, but in Resharper , there is only one option for this; ReSharper | Options -> Environment | Search & Navigation and turning off or on Go to declaration on Ctrl + Left click in editor But If I