resharper

Resharper Unit Test Runner Can't Find Content Files

限于喜欢 提交于 2019-11-30 23:17:47
问题 I have some tests that rely on some files I have marked as "Content" and to "Always Copy". I'm using the DeploymentItem attribute to make sure they get copied to the output directory when running mstest outside of VS. However when using the Resharper test runner inside VS these files never make it to the directory that it is executing from. Anyone know how to fix this? 回答1: Disabling the Unit Testing > Shadow-copy assemblies being tested Resharper option fixed this problem for me. 回答2: We

Does ReSharper 6.1 work with Visual Studio 2012?

青春壹個敷衍的年華 提交于 2019-11-30 23:16:39
问题 Does Resharper 6.1 support Visual Studio 2012? I have it working with VS2010 but wondering do I need to upgrade to ReSharper 7.0 for support in VS2012. It would be disappointing if I did. 回答1: If you install VS2012 after installing VS2010+ReSharper, then the latter does NOT appear in VS2012. I'm assuming -- I haven't tested this -- that even if you install R# after VS2012 it won't show up either simply because the R# installer does not offer the option to integrate into VS2012. Therefore, I

Adding a Visual Studio toolbar button for a command that is only available as a keyboard shortcut

无人久伴 提交于 2019-11-30 22:48:33
This question relates to this ReSharper YouTrack issue . In Visual Studio 2010 with ReSharper 7.1.1 installed, if I go to Tools > Options > Environment > Keyboard, there is a command called ReSharper_SilentCleanupCode. I would like to bind this command to a toolbar button. This seems to be impossible using Tools > Customize > Commands because the only commands available within this dialog are for actions that already have an associated menu item. The particular ReSharper command I'm interested in (Silent Code Cleanup) doesn't appear in any menu, so it cannot be assigned to a toolbar button

Resharper “Cannot resolve symbol” when the code well-compiled

…衆ロ難τιáo~ 提交于 2019-11-30 20:32:38
I believe, the error message not related to Serilog specifically, but is rather because of the code/assembly/package specific structure/modifiers etc. So, the issue is that Resharper shows the error (and the code (from assembly referenced) is not accessible for navigation to) when Visual Studio navigates (by Go to Definition command) to metadata and compiles the code well (including, showing the method description successfully as well). The method is defined in assembly as follows: namespace Serilog { public static class Log { public static ILogger ForContext<TSource>(); My current version of

Resharper formatting code into a single line

瘦欲@ 提交于 2019-11-30 18:56:18
I am having an issue with formatting code with Resharper. I have disabled the option for wrapping lines. With this option, the following code will be formatted to a single line. Does anyone have an idea how to have Resharper not format the following code? Mapper.CreateMap<CountryEntity, Country>() .ForMember(dest => dest.CreatedBy, map => map.MapFrom(src => src.CreatedBy)) .ForMember(dest => dest.DateCreated, map => map.MapFrom(src => src.DateCreated)) .ForMember(dest => dest.Id, map => map.MapFrom(src => src.Id)) .ForMember(dest => dest.Name, map => map.MapFrom(src => src.Name)) .ForMember

Debugging jasmine tests with resharper and phantom js

橙三吉。 提交于 2019-11-30 18:50:49
Similar question was already asked some time ago How do you debug Jasmine tests with Resharper? What is suggested there doesn't really work for me (place debugger; in test code). Each time the tests are run, a new browser window opens and thread jumps through debugger. Is there any way to make it work? And also is there any way to debug jasmine tests with phantom runner and Resharper? Thanks in advance To debug in the browser, add the code below to your js test file. jasmine.getEnv().currentRunner_.finishCallback = function () {}; Resharper won't be notified that the test has finished so we

Resharper formatting chained method

允我心安 提交于 2019-11-30 18:36:08
Is there a setting in R# to format chained method to start at the same character of the class instantiated. What I want: var foo = new FooDataBuilder() .WithDate(myDate) .WithBar(myBar) .Build(); What R# is giving me: var foo = new FooDataBuilder() .WithDate(myDate) .WithBar(myBar) .Build(); With Resharper 7.1.2, you can get the following formatting: var foo = new FooDataBuilder().WithDate(myDate) .WithBar(myBar) .Build(); By setting the following Resharper options: Code Editing -> C# -> Formatting Style -> Line Breaks and Wrapping -> Line Wrapping -> Wrap chained method calls to Chop always

ReSharper Unit Test Runner - TestCase

我的梦境 提交于 2019-11-30 18:23:33
I like using the ReSharper unit test runner, but it doesn't support the TestCase attribute that was added in NUnit 2.5. Is there any hack to get round this? I can obviously use another test runner, but I like the ReSharper one. I love ReSharper, but it does not yet support [TestCase]. However, take a look at the Gallio plug-in for ReSharper which does. http://www.gallio.org/ Another solution that I use on Resharper version 5 is to use aspects with your tests. I'd love resharper 6 but upgrading isn't an option for me currently. You can use PostSharp to create an aspect that does something as

How to diagnose Resharper Unit Test Runner “Unable to load one or more of the requested types” error

孤者浪人 提交于 2019-11-30 18:15:15
When I run or debug my unit tests using Resharper Unit Test Runner, I get a dialog popping up that says "Unit Test Runner failed to run tests - Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information": Now I have tried rebuilds, cleans, manually deleting folders, visual studio restarts, hardware restarts, looking in output/debug windows, and evening enabling R# "internal" mode so that I can see it's logs (written to %Temp%\JetLogs as I understand), but none of that resolves it or gives any clues at all. I have tried "debugging" R# but

What are the benefits of maintaining a “clean” list of using directives in C#?

穿精又带淫゛_ 提交于 2019-11-30 17:41:34
I know VS2008 has the remove and sort function for cleaning up using directives, as does Resharper. Apart from your code being "clean" and removing the problem of referencing namespaces which might not exist in the future, what are the benefits of maintaining a "clean" list of using directives? Less code? Faster compilation times? For me it's basically all about less noise (plus making Resharper happy!). I would believe any improvement in compilation time would be minimal. If you always only have the using directives that you need, and always have them appropriately sorted, then when you come