resharper

Resharper is suggesting that string literals are localizable

风流意气都作罢 提交于 2019-12-05 11:25:31
问题 One of the suggestions of Resharper 6.0 was to localize strings, and if I didn't want a string to be localized, I could suppress the warning by converting it to a verbatim string literal by adding a @ . After upgrading to Resharper 6.1, this doesn't work anymore. Even verbatim string literals are showing the warning. Disabling localization or suppressing the warnings isn't an ideal option. I do use localization so the warnings are helpful, and I don't want to have the disable comments

Resharper - convince management [duplicate]

荒凉一梦 提交于 2019-12-05 10:54:32
Possible Duplicate: Business Case for Resharper Hi Guys! I've just recently graduated and I'm working for my first company. During college, one of my professors had every computer loaded with Resharper and I loved it! I bought myself a personal license for it and have been using it ever since. But at my new job, only a select few (senior developers mostly) are using Resharper. When I asked my supervisor to buy a license for myself, I was shot down because "it won't improve the productivity of level 1 programmers". I've tried showing them that Resharper is only a fraction of a programmer's

How to run nunit tests with asp.net 5 projects, especially with ReSharper?

爱⌒轻易说出口 提交于 2019-12-05 10:41:41
I am developing an asp.net 5 application targeting dnx451. The asp.net 5 project relies some libraries with unit-tests written for nunit 2.x. So the reasonable choice for me is to use nunit for testing the asp.net 5 project. When I running the unit test in ReSharper, the ReSharper says "Test not run" with additional message "System.IO.FileNotFoundException: Could not load file or assembly xxx ". Both nunit 2.6.4 and 3.0.0-beta-2 results the same error. Any one has successfully running nunit tests against an dnx project? DNX tests aren't currently supported by ReSharper. It's a whole new

Visual Studio performance and add-ins

别来无恙 提交于 2019-12-05 10:18:21
Do the useful add-ins (Resharper, StyleCop, etc.) to Visual Studio speed up your work? Or tools need too many resources and you have to wait until each add-in completes execution? [Update]: By the way does some body notice whether performance of IDE + Resharper is better for solutions that contain web sites or web applications? I use some add-ins as long as they don't affect the performance of Visual Studio. To that end, tools like StyleCop, MZ-Tools, and Visual Studio Commands are the clear winners. The problem I have with tools like Refactor! and Resharper are that They degrade performance,

Resharper Warnings with MVVM

余生长醉 提交于 2019-12-05 08:58:37
问题 As I implement the MVVM pattern with WPF, I'm finding that Resharper is often warning me that certain properties are never used in my ViewModels. The problem is that they are being used, but only by the data binding system. Has anyone else encountered this annoyance and is there a way to help Resharper realize that these properties are, indeed, being used? I am glad, at least, that VS 2010 properly realizes that [Import] tagged members won't "always be null", but hopefully I can fix this

ReSharper Unit Test not run in bin directory

徘徊边缘 提交于 2019-12-05 08:55:04
问题 Preamble I know, that this question seems to have anwsers here: Resharper runs UnitTest from different location Resharper Unit Test Runner Can't Find Content Files I have nearly the same problem like ReSharper 10 test runner failing to find AppSettings referenced from external file. But these answer stated, that the problem should be gone with ReSharper 10.0.2 Question I included a custom.xml files with custom settings, and I need to read them from my unit test. But my file is not found. I

Reset Resharper

房东的猫 提交于 2019-12-05 08:44:16
问题 How can I reset all options in Resharper back to their default? 回答1: Here is how you do it in Resharper 6.1. Go to Resharper -> Manage Options... Click the "Reset All Settings" button. 回答2: Try deleting the file: C:\Users\<user-name>\AppData\Roaming\JetBrains\ReSharper\<resharper version>\vs<vs version>\UserSettings.xml 来源: https://stackoverflow.com/questions/3966798/reset-resharper

Running NUnit Tests in .NET Core with ReSharper

笑着哭i 提交于 2019-12-05 08:31:37
Is it possible to run NUnit tests with R#, when these tests are in a .NET Core project? I have been unable to do that. If I select the option to produce outputs, then R# cannot find the NUnit assembly. Update : The NUnit team and I have released full .NET Core support, it is a console runner that runs tests at the command line and runs tests within Visual Studio's Test Explorer. See NUnit 3 Tests for .NET Core RC2 and ASP.NET Core RC2 for more info. Neither R#, nor the NUnit Visual Studio adapter, or even the nunit3-console.exe support .NET Core yet. .NET Core projects currently must be tested

Code suggestions by Resharper making code less readable?

风流意气都作罢 提交于 2019-12-05 08:28:50
问题 While trying to get to all green, i got the following suggestion by Resharper. Original code: static public string ToNonNullString(this XmlAttribute attr) { if (attr != null) return attr.Value; else return string.Empty; } Suggestion: remove redundant 'else' resulting in following: static public string ToNonNullString(this XmlAttribute attr) { if (attr != null) return attr.Value; return string.Empty; } To me, the suggested version seems less readable than the original. Does Resharper

How to remap the Ctrl+Click “Go To Definition” short-key in the Productivity Power Tools (or maybe ReSharper)

时光总嘲笑我的痴心妄想 提交于 2019-12-05 08:20:57
问题 I love the Productivity Power Tools extension for visual studio, however it has added the Ctrl +Click "Go To Definition" functionality, which is great and all, but my workflow makes me use the functionality when I don't want it. When I want to copy something, I start marking some text, still holding down the mouse button, hold down Ctrl + C and then release the mouse button. The tool acknowledges this as a Go To Definition click, and I usually end up in the definition of String or whatever. I