resharper

Jasmine tests in Resharper don't stop executing

喜欢而已 提交于 2019-12-24 08:18:54
问题 I use Visual Studio 2012 and ReSharper 8.2 to test my JavaScript code. Using QUnit works perfectly so far, when writing Jasmine tests the tests don't stop when the following line is added at the beginning of the file: /// <reference path="../lib/jasmine.js" /> When I remove it, the tests stop soon, as it should be. I would like to keep this line though so VS knows the syntax of the Jasmine commands. It doesn't matter whether I use phantom.js or not. The behaviour is the same. According to

I can't get the “Filter results from generated files” to work in Resharper 8

元气小坏坏 提交于 2019-12-24 07:49:01
问题 If I've read the documentation correctly, checking the "Filter results from generated files" option is supposed to hide code-generated files from the results of for instance the commmand ReSharper.ReSharper_GotoFile . This does not happen in my solution. Evidence: ErrorController.generated.cs is code-generated and should be caught by both the wildcard *.Generated.cs and my manual configuration of the T4MVC-folder. Does not happen: Configuration and solution view: Anything I've misunderstood

Can I search by a reference name, solution-wise, to see in which projects it was referenced?

与世无争的帅哥 提交于 2019-12-24 06:36:23
问题 Is there any possibiliy to searh the whole solution to see a particular refrence's usage? Let's say, can I see in what projects the reference "Xyxyxyxy.dll" is referenced? (ReSharper based answers are also acceptable! :) ) Thanks! 回答1: You can do this through notepad++ quite easily by giving the solution directory and *.csproj as the filter i.e. searching the csproj files for the references. In case you want to search for GAC assembly references, search for the following string <Reference

Mass renaming (refactoring) in C# project [closed]

别说谁变了你拦得住时间么 提交于 2019-12-24 06:33:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Today, I received an excel file with two columns. I have to rename objects in a solution according to excel file. First column contains "current name", second column contains "new name". More than 5000 lines there. Currently it is VS2013 with Resharper, C# solution contains several projects. How can I automate

accessing C# base class in iterator causes ReSharper warning

自古美人都是妖i 提交于 2019-12-24 01:33:26
问题 I have two classes, GenericList and SpecificList , where SpecificList inherits from GenericList . GenericList implements IEnumerable<GenericItem> and SpecificList implements IEnumerable<SpecificItem> . SpecificItem inherits from GenericItem . I have to implement GetEnumerator in both GenericList and SpecificList since they implement IEnumerable<T> . In GenericList , it's easy enough, I just return the enumerator for the underlying List<T> : public IEnumerator<GenericItem> GetEnumerator() {

Edits were made which cannot be compiled. When using Resharper in VS2019

ぐ巨炮叔叔 提交于 2019-12-24 00:55:39
问题 I have a multi project solution using .Net Core 2.1 With VS2019 16.3.9 and Resharper 2019.23 Build 192.0.20191016.60459 If I try to run a test in debug, it will run ok once. On the second run I will get the error Edits were made which cannot be compiled. Execution cannot continue until the compile errors are fixed. I have tried deleting the .vs folder A similar question is asked here but I thought it was worth starting a new question as this is related to Resharper. I get the error in the VS

How to automate the creation of WPF Viewmodel properties

↘锁芯ラ 提交于 2019-12-24 00:13:22
问题 I am using Visual Studio '17 and Resharper in a WPF project that displays a lot of information to the user. Therefore I have a lot of properties that look like the following. private double _foo; public double Foo { get { return _foo; } set { SetProperty(ref _foo, value); } } I'm looking for a quick automated way to create this. Right now I type 'prop' and get this public double Foo {get; set;} hit 'Alt-Enter' -> 'To property with backing field' to get this private double _foo; public double

How can I record a “(” in a macro in vsVim?

久未见 提交于 2019-12-23 20:12:31
问题 I'm trying to record a macro that will type a small chunk of text that contains a parenthesis "(", whenever I try to play the macro it doesn't type the "();" at the end of the line. My guess is that parenthesis in a macro may have some special meaning but in my case, I just wanna type in "(". What's breaking my macro? How can I get the parenthesis to be typed? (note: I'm using the Visual Studio vsVim plugin) Edit: I can't remember the exact macro anymore, but it went something along the lines