resharper

Visual Studio Linked Files Directory Structure

不羁岁月 提交于 2019-12-07 14:04:57
问题 I have two versions of a project. One for Silverlight and one for .NET. The SL project has the vast majority of the code base in it. I want to globally add all files from the SL project into the .NET version as linked files. I've managed to do so successfully like this in the csproj file for the .NET version: <Compile Include="..\MyProj.Common.SL\**\*.cs" Exclude="..\MyProj.Common.SL\Properties\**"> Unfortunately, this adds all the files right to the root of my project... so I end up with a

Resharper throws OutOfMemoryException on big solution

佐手、 提交于 2019-12-07 10:46:48
问题 IDE Configuration: Visual Studio 2008 + Resharper 4.5.1 + Agent Smith 1.1.8. There is no any sophisticated configuration for last to add-ins. Solution description: 33 class libraries + web site with 200+ pages. Symptoms: After an hour of work under tuned on Resharper the IDE starts to throw the OutOfMemoryExection exceptions. Normal work is impossible only reopen Visual Studio can help. Does anybody has such problem? Is it possible to configure Resharper to consume less memory? What Resharper

Allow same-line empty methods in ReSharper

淺唱寂寞╮ 提交于 2019-12-07 09:47:28
问题 Is there a way to tell ReSharper to allow same-line brackets for empty methods and constructors? For example: MyConstructor(int x) : BaseConstructor(x) { } protected virtual void Foo() { } Should not be converted to: MyConstructor(int x) : BaseConstructor(x) { } protected virtual void Foo() { } In the first case, I don't need a method body, I simply supply the parent constructor with its arguments. In the second case, I define an "optional abstract" method by making it virtual that therefore

What is the perfect way to write “return” in a method

混江龙づ霸主 提交于 2019-12-07 07:16:38
问题 I don't like methods have several return lines. So I created a return value with string result - and in every condition I write result = something... But when I write "try-catch" mechanism, I have to set public string result . Because, if I return a result in try, compiler will launch error, and says not all codes have return value. If I write result = string.Empty to end of the method, resharper says, it's not reachable code. So, here an example, and here is my question; "What is the perfect

Resharper does not navigate to external sources despite pdb files present

99封情书 提交于 2019-12-07 06:56:10
问题 My solution uses classes from .dlls generated by my other solutions .dll where generated in debug mode on the same machine, pdb files are present steeping into those external sources during debugging works, so I am assuming pdb files are correct pdp files are in the same directory as .dlls In R# settings I have "Navigation to Sources" selected and "Use debug information for navigation checked" VS2012 Pro and R# 8.02 Full It drives me crazy, how come such crucial thing, that is provided out-of

Ignore designer and generated files in Resharper analysis

孤者浪人 提交于 2019-12-07 06:54:45
问题 I've been using Resharper for a few days and I really like this tool, but there's one thing that annoys me about it and I wonder if it can be changed. I'm getting lots of issue notifications from generated code (almost 1400 in my project). I'd want to set those files as ignored so they won't be checked as you can do with StyleCop and CodeAnalysis. Unfortunatelly it looks like Resharper ignores Generated Code settings from it's options because I'm still getting the same notifications. I've

Running NUnit Tests in .NET Core with ReSharper

为君一笑 提交于 2019-12-07 06:45:12
问题 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. 回答1: 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

Visual Studio performance and add-ins

人走茶凉 提交于 2019-12-07 06:43:36
问题 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? 回答1: 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

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

扶醉桌前 提交于 2019-12-07 06:09:12
问题 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

Using MSpec runner in Visual Studio 2010 and .NET 4

Deadly 提交于 2019-12-07 04:58:53
问题 I'm a big fan of MSpec so naturally I wanted to use is right away with VS2010 as well. I have the MSpec runner defined as an external tool in Visual Studio to be able to have it always visible as a toolbar item. Anyway, whenever I try to use the MSpec runner (mspec.exe) with a .NET 4.0 solution I get the following error: Could not load file or assembly 'file:///C:\Users\[SOMEUSER]\[SOME_FOLDERS]\bin\Debug\[PROJECT].Specs.dll' or one of its dependencies. This assembly is built by a runtime