resharper

Running NUnit through Resharper 8 tests fail when crossing between projects due to AppDomain

回眸只為那壹抹淺笑 提交于 2019-11-29 21:15:35
I recently updated to Resharper 8, and when I tried to run a suite of projects. These tests contain two suites of integration tests that both use IISExpress to run a website, make web requests and check the responses. Running them in isolation is successful, and running all the tests would previously succeed. However, after the upate the second set of tests to run would fail. Investigation has revealed the AppDomain.CurrentDomain.BaseDirectory is staying as the first test to run instead of changing. Since the integration tests are composed of two projects, this is causing the second project to

Resharper debugging a third party decompiled dll

五迷三道 提交于 2019-11-29 21:14:13
Is there a way to debug into a decompiled dll using Resharper and if so how do you do this? For example I am trying to debug into System.Web.Http.ApiController where I have decompiled and can see the source. I have set a breakpoint but when I run the application it does not break into decompiled breakpoint when debugging. As far as i am aware it is not possible to debug the decompiled .net source code using Resharper (up to v6.1) However, this article explains how you can debug into the .net source with Visual Studio 2010 - if you need instructions for another version of VS, just use the

How do you debug Jasmine tests with Resharper?

纵饮孤独 提交于 2019-11-29 20:57:14
I can't find a way to debug (walk through) JavaScript code when running Jasmine tests with Resharper in Visual Studio 2012. I tried running tests with browser (Chrome) but the test runner closes the port as soon as the test is run and so I cannot put a breakpoint in the code. Also tried running in Internet Explorer and put breakpoints in Visual Studio but it won't attach to the process. My test has a lot of ///reference scripts that Resharper includes automatically in the test runner but I don't want to manually do this for every test that I want to debug. Please help me understand this. If

Transfer all ReSharper Settings between PCs

跟風遠走 提交于 2019-11-29 20:23:37
I was wondering if there is a way to copy ALL my settings from ReSharper (including the StyleCop for ReSharper settings and the keyboard bindings I have set for ReSharper) from one PC to another? Since the export option within Resharper is only for code styles, you'll need to be a bit craftier for all settings. From Peter Ritchie's blog ... ...the settings are stored in "%userprofile%\application data\jetbrains\resharper\v4.0\vs9.0". There are a couple of xml files in there that store your settings. Before you upgrade to the latest build, just copy those to another directory. It's very likely

Visual Studio ReSharper Keymap for IntelliJ IDEA

▼魔方 西西 提交于 2019-11-29 19:56:23
I primarily use Visual Studio and ReSharper (R#) for development and have excellent working knowledge of R#. I want to leverage that knowledge in IntelliJ IDEA (with my personal Java adventures) without having to learn the IDEA keymap scheme. IDEA has a Visual Studio keymap but that mainly updates such key bindings as Find (Ctrl + F) and Replace (Ctrl + H) etc. Because Visual Studio doesn't have built-in capabilities like "Inspect This..." etc. (the kinda stuff provided by R#), those IntelliJ keybinding in Visual Studio keymap are merely a dump of IDEA's. In VS.NET, ReSharper comes with two

Resharper 8 - Quickfix shortcut Alt+Enter gone

谁说胖子不能爱 提交于 2019-11-29 19:42:35
In Visual Studio 2012/2013, I want to reassign the Alt + Enter ↵ key combination to the "Quickfix" (triggering the menu from the light bulb) because it is not working anymore. I can't. I have tried the following (I am aware that some of the suggestions refer to VS 2010 and older R# versions): Tried to change manually in Tools - Options - Keyboard : the former ReSharper_QuickFix entry is gone, see ReSharper_QuickFix gone Tried Resharper_AltEnter as suggested in What is the name of the ReSharper's Quick Fix command - nothing, no shortcut Switched back and forth settings in ReSharper -> Options -

Business Case for ReSharper

落花浮王杯 提交于 2019-11-29 19:42:14
We are trying to get ReSharper introduced to our company but it would have to be for all developers. Management want us to justify the cost with a business case. I am unsure how to go about getting proof that ReSharper will benefit the business. What kind of statistics can you get from it? I am unsure how to go about getting proof that Resharper will benefit the business. If they asked for a business case, they're not asking for proof, just some kind of fact-based estimate of the likely return on their investment. So, for example: A license costs (say) $250 per developer, a developer costs

Unable to type in Visual Studio

天大地大妈咪最大 提交于 2019-11-29 19:23:10
I am unable to edit any files in a project in Visual Studio 2013. It only happens in one project. If I open a different project I am able to type fine, but once I go back into the problem project I am unable to type in the editor windows. Not sure if it matters but the project that is giving me issues we are using SVN on. The other projects are just local ones on the machine. I have restarted Visual Stuido, restarted the computer and still am unable to edit the files. Any ideas? Steve This exact thing happened to me. Do you have ReSharper? If so, the solution I found here may work for you.

How can I create NUnit tests with ReSharper?

别等时光非礼了梦想. 提交于 2019-11-29 18:54:23
问题 I'm trying to get into unit testing with C#. Various people told me to go with NUnit since it's better than MSTest (apparently, I have no idea) and it also has very good support in ReSharper which I'm using. Now I've never written a unit test before in my life (bear with me, I'm a university student). ReSharper has this nice CreateUnitTests context menu option that I've seen others (casually looking over the shoulder) use to great success. You right-click in a method, select CreateUnitTests

What ReSharper 4+ live templates for C# do you use? [closed]

自闭症网瘾萝莉.ら 提交于 2019-11-29 18:33:54
What ReSharper 4.0 templates for C# do you use? Let's share these in the following format: [Title] Optional description Shortcut: shortcut Available in: [AvailabilitySetting] // Resharper template code snippet // comes here Macros properties (if present): Macro1 - Value - EditableOccurence Macro2 - Value - EditableOccurence One macro per answer, please! Here are some samples for NUnit test fixture and Standalone NUnit test case that describe live templates in the suggested format. Sean Kearon Simple Lambda So simple, so useful - a little lambda: Shortcut : x Available : C# where expression is