resharper

ASP.net Web Forms, get aspx/view errors at compile time?

好久不见. 提交于 2019-12-18 13:01:29
问题 I know this can be done with mvc2, but is there any way for visual studio(2010)/resharper(6) to check for errors on aspx pages at compile time and halt the build? Resharper can detect the errors just fine, so it seems like there should be a way to integrate a check of all the aspx pages in to the build process. Any tips? 回答1: Yes you can. The following steps will cause .aspx files to be compiled as part of a normal builk invoked by the IDE, no Resharper plugin required. Unload your web app

ASP.net Web Forms, get aspx/view errors at compile time?

南笙酒味 提交于 2019-12-18 13:01:24
问题 I know this can be done with mvc2, but is there any way for visual studio(2010)/resharper(6) to check for errors on aspx pages at compile time and halt the build? Resharper can detect the errors just fine, so it seems like there should be a way to integrate a check of all the aspx pages in to the build process. Any tips? 回答1: Yes you can. The following steps will cause .aspx files to be compiled as part of a normal builk invoked by the IDE, no Resharper plugin required. Unload your web app

Remove unused Usings across entire assembly

倾然丶 夕夏残阳落幕 提交于 2019-12-18 12:47:21
问题 I am wondering if maybe ReSharper is able to run through every class and remove unused usings? I looked but I don't see an option like this in R# 4.5. Has anyone seen this in Resharper outside of just being able to remove usings in a single class? 回答1: I believe that cleanup across a project is a new feature in ReSharper 5. I take that back, the feature is in ReSharper 4.5. If you right click on the solution, there's a Cleanup Code... item, which allows you to apply a cleanup profile to the

Ambiguous references with the exact same namespace

亡梦爱人 提交于 2019-12-18 12:43:55
问题 The RC class is not linked to a database, it is a simple class. The class is at only one place and is not partial. The Aérochem.Domain dll project compiles just fine. Note: If I select one of the two identical namespaces in the quick fix menu, it does nothing. Note2: This happens to a couple of classes (some related to a database, some not) Is there a fix to that or a way to figure what's wrong? 回答1: I had the same problem. I use ReSharper. The solution to my problem was not cleaning the

Resharper - is it possible to go to method's implementation on CTRL-click instead of going to declaration?

喜你入骨 提交于 2019-12-18 10:59:11
问题 if I do CTRL-click on method's name in VS2012 with Resharper 8, I'm redirected to the method's "declaration" - and that's quite inconvenient if I have lots of interfaces in my project. If it possible to configure resharper to go right to the IMPLEMENTATIONS of the method (and if there is more than one - display a context menu which I need to select the desired method from)? I can achieve this if I do right-click -> "Go to Implementation" but I really prefer to have this on ctrl-click. 回答1:

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

こ雲淡風輕ζ 提交于 2019-12-18 10:26: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

How do you debug Jasmine tests with Resharper?

≡放荡痞女 提交于 2019-12-18 10:24:30
问题 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

Transfer all ReSharper Settings between PCs

只愿长相守 提交于 2019-12-18 10:16:34
问题 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? 回答1: 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

Visual Studio ReSharper Keymap for IntelliJ IDEA

左心房为你撑大大i 提交于 2019-12-18 10:08:45
问题 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

Business Case for ReSharper

邮差的信 提交于 2019-12-18 10:05:04
问题 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? 回答1: 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