resharper

How to make Resharper resolve path for CustomBinding MarkupExtension

拈花ヽ惹草 提交于 2019-12-09 04:59:16
问题 I want to create some extended Binding-Markup-Extension, which behaves just like a normal WPF-Binding but does some things more (use different defaults, maybe add some behavior, etc.). Code looks like this: public class CustomBindingExtension : Binding { .. some extra properties and maybe overrides ... } It all works fine including XAML-intellisense, except I just can't make Resharper resolve my Binding-Path correctly. I.e.: using this code I can [Strg]+Click on 'CurrentText' and Resharper

Is it possible to actually debug 3rd party code using the source decompiled with dotPeek?

那年仲夏 提交于 2019-12-09 02:49:26
问题 I use VS2012. I know how to debug the 3rd party code using the .NET Reflector and always used it. I was wondering whether this is possible with dotPeek from JetBrains or with R# itself without the dotPeek. I am able to navigate to the decompiled 3rd party code, but not step through it. Any ideas? 回答1: I see this question is still driving traffic to my blog, so I'll add an answer: yes, debugging 3rd-party assemblies is now possible with the JetBrains dotPeek decompiler (completely free), by

Does Resharper contain a Convert to Direct Cast refactoring?

只谈情不闲聊 提交于 2019-12-09 02:22:30
I have code like this all over the code base: MultiList ml = this.CriteriaList.ItemByName(SC_SAM_CATEGORIES) as MultiList; I want to convert it to direct cast: MultiList ml = (MultiList) this.CriteriaList.ItemByName(SC_SAM_CATEGORIES); with a possible bonus of replacing MultiList ml with var ml . Does Resharper contain a refactoring like this, perhaps via an addin? If so, how do I turn it on? Yes, you can actually compose your own refactorings through Custom Patterns : see this link In your case : Search pattern : $type$ $id$ = $expr$ as $type$; Replace pattern : var $id$ = ($type$) $expr$;

Can I stop ReSharper objecting to Ionic HTML tags?

扶醉桌前 提交于 2019-12-08 19:15:35
问题 I've just opened my first Ionic based mobile project, and the HTML templates are really full of Ionic tags, like <ion-modal-view> , which courtesy, ReSharper (I deeply suspect), has a wavy blue underline, as do half the other tags in the template. I deplore working with these lines on the screen, as they indicate there is something wrong (OK, maybe for the W3C it is wrong), when there is nothing wrong. Can, and how, I get rid of these damned blue lines? 回答1: Well I'm a big believer in writing

.NET Core - Project compiles and run, reSharper shows lots of errors on “FileStream” and “MemoryStream” objects

半腔热情 提交于 2019-12-08 18:43:29
I have a .NET Core project which compiles and runs without errors. However, ReSharper (version 2017.1.2) throws up a number of errors throughout the project, mostly related to stream objects. For example: Cannot convert source type 'System.IO.MemoryStream' to target type 'System.IO.Stream' and when reading a stream Module 'System.Private.CoreLib, Version=4.0.0.0 {snip}' should be referenced I think it's related to the latter error, however as everything runs it's just frustrating that I can't track it down. Or should I just get ReSharper to ignore these errors? It's a known issue in ReSharper

Resharper xUnit tests not working after installing .NET Core 2.0

妖精的绣舞 提交于 2019-12-08 17:30:27
问题 Right after installing .NET Core SDK 2.0, all tests a solution that targets the previous version of .NET Core fail to be discovered by Resharper. Also, when I add them manually to the session and attempt to run them, I get an "Inconclusive: Test not run": Also, there's these exceptions along with the previous message: If I uninstall .NET Core SDK 2.0, everything works as expected. No issues at all. Tried both x86 and x64 versions, same results. All projects in the solution target .NET Core 1

Go to declaration does not work in resharper on vs2005/2008/2010/2012 on win8 64 bit?

与世无争的帅哥 提交于 2019-12-08 17:25:25
问题 I have a User class which I created. However when i CTRL+left mouse click on it's instances , it suppose to go to the class " User " itself : But it doesn't. ( it should. in vs2010 it works). But if I right click on it and choose : "goto declaration" It does work : and redirects me to : (the User Class) resharper ver : 7.1.3000.2254 vs 2012 pro Here are the current settings : How can I fix it ? Edit. After another check, it's also with vs2010. I guess the problem is compatibility with win8

Resharper vs2013 CTRL+Click not working

半腔热情 提交于 2019-12-08 17:14:04
问题 I have installed reshaper 8.1.23 and visual studio 2013 update 1. I'd like to navigate to assembly when I hold Ctrl + click. for example holding Ctrl on IdentityUser class and Click should bring IdentityUser class but nothing happen. I also have done what has mentioned here Resharper Navigate to MVC View but with no success. when i press f12 it goes to the desired class but in previous version of resharper it was done by resharper. 回答1: Without additional information, I think what happened is

NUnit Addins with Resharper 5

泪湿孤枕 提交于 2019-12-08 16:55:15
问题 The latest Resharper (v5) version is based on native NUnit code and allows NUnit addins. I have a NUnit addin that works fine in NUnit GUI but I can not make it work with Resharper. Based on R# indication I have put my addins library in %ResharperPath%\Bin\addins but I doesn't work, my tests are marked as Ignored . Question: How to use NUnit addins with ReSharper? 回答1: Unfortunately, ReSharper's test runner doesn't support NUnit add-ins. It's been requested, but hasn't been added, not even to

Why resharper 7 tests session window does not show unit tests total execution time in Visual Studio 2012? [closed]

北城余情 提交于 2019-12-08 16:52:00
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . When I run unit tests and enabling test execution time display by pressing this button, Resharper shows me execution time of each of the tests, but not