resharper-6.0

R#6 - Suggests “Use directory” in razor views. How to disable?

廉价感情. 提交于 2019-12-07 00:10:44
问题 I am using R#6 and when I edit some razor views, R#6 suggests that I "use directory". (Whine :)) I dont want to! How do I turn off this annoyance? I have searched through R#6 options. It is definitely R# since the annoyance goes away when i suspend R#. In the printscreen, R# wants to change /SignUp to ../Signup. It is incorrect because the view is the layout and could be in any directory structure. So i want it to be /Signup Solution: As derigel states. Wait for the warning to show. Hit

R#6 - Suggests “Use directory” in razor views. How to disable?

萝らか妹 提交于 2019-12-05 04:42:57
I am using R#6 and when I edit some razor views, R#6 suggests that I "use directory". (Whine :)) I dont want to! How do I turn off this annoyance? I have searched through R#6 options. It is definitely R# since the annoyance goes away when i suspend R#. In the printscreen, R# wants to change /SignUp

Temporarily disable StyleCop warnings on ReSharper 6

喜夏-厌秋 提交于 2019-12-01 14:09:02
问题 I downloaded StyleCop 4.6.3 which integrates with ReSharper 6 and the results are really fantastic! However on a specific project I would like to disable the StyleCop warnings (temporarily) and enable again later on. Is there any way of doing this? I can't seem to find it on the ReSharper menu (options, etc). 回答1: You can use different Settings.Stylecop settings for each project, just create one that ignores all the rules. Right click on a project and select Stylecop settings to modify them.

ReSharper - how to disable generation of rubbish documentation headers in Code Cleanup

半世苍凉 提交于 2019-12-01 00:49:25
问题 We're using ReSharper 6.0 with StyleCop for ReSharper. Although we use the StyleCop rule that members must have documentation headers, we don't want ReSharper's code cleanup facility to generate documentation headers for us, because they're inevitably rubbish. Bad doc headers are worse than none at all because they're less likely to be updated than added in the first place. We tried turning off the setting 'Insert text into documentation and file headers' in ReSharper => Options => Tools =>

Completely Disable Formatting and Completion in ReSharper for Visual Studio

泄露秘密 提交于 2019-11-29 10:33:23
问题 I like a lot of the features that ReSharper offers, but I absolutely can't stand the formatting and code completion it does. It trips me up every step of the way. In javascript it's constantly stealing braces attempting to reformat my code making it not work, and hard to find where pieces are missing. I would like to disable everything to do with ReSharper's formatting and code completion while still getting the benefits of the cool navigation stuff it has. Is there anyway to do a selective

Is “Access to modified closure” resolved by comprehension syntax?

核能气质少年 提交于 2019-11-27 03:23:44
问题 ReSharper 6.0 gives me the "Access to modified closure" warning for the dr identifier in the first code snippet. private IEnumerable<string> GetTheDataTableStrings(DataTable dt) { foreach (DataRow dr in dt.Rows) { yield return GetStringFuncOutput(() => dr.ToString()); } } I think I have a basic understanding of what this warning is trying to protect me from: dr changes several times before GetTheDataTableStrings's output is interrogated, and so the caller might not get the output/behavior I

The current SynchronizationContext may not be used as a TaskScheduler

陌路散爱 提交于 2019-11-26 06:25:45
问题 I am using Tasks to run long running server calls in my ViewModel and the results are marshalled back on Dispatcher using TaskScheduler.FromSyncronizationContext() . For example: var context = TaskScheduler.FromCurrentSynchronizationContext(); this.Message = \"Loading...\"; Task task = Task.Factory.StartNew(() => { ... }) .ContinueWith(x => this.Message = \"Completed\" , context); This works fine when I execute the application. But when I run my NUnit tests on Resharper I get the error

工具导航Map

JSON相关