resharper-6.0

How to prevent ReSharper from creating folders in solution?

青春壹個敷衍的年華 提交于 2019-12-14 01:30:18
问题 ReSharper 6 creates folders like ReSharper.projectname with the files and folders below in it. That caused a lot of problems with MSDeploy and source control in general. I had to add ignore rules everywhere. What's the right way to prevent that from happening? Is switching back to Visual Studio Intellisense enough? 08/05/2011 02:21 PM 8 AspFileDataCache.dat 08/05/2011 02:25 PM <DIR> BuildScriptCache 08/05/2011 02:25 PM <DIR> JavaScriptCache 08/05/2011 02:24 PM <DIR> JbPdbInfo 08/05/2011 02:25

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

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 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 escape. Then CTRL+Enter. A mini menu appears where you can suppress or change the warning severity. I

Temporarily disable StyleCop warnings on ReSharper 6

懵懂的女人 提交于 2019-12-01 16:03:12
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). 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. I think you can also disable plugins by unticking them from ReSharper->Plugins... (in version 5.1, not sure

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