Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-288263: Wrong unused XAML resource recommendation

$
0
0
Reporter Bernhard König (bkoenig) Bernhard König (bkoenig)
Created Feb 12, 2012 6:55:40 PM
Updated Feb 14, 2012 1:47:46 PM
Priority Critical
Type Usability Problem
Fix versions Next
State Open
Assignee Alexander Shvedov (shvedov)
Subsystem Language - XAML
Affected versions 6.1.1
Fixed in build No Fixed in build
As discussed with @gorohoroh and @hhariri I submit a sample project for two ReSharper bugs: this and RSRP-288266.

First: Wrong unused XAML recommendation

In MainWindow.xaml there is a Button defined in Window.Resources section. ReSharper says this resource is never used and recommends to remove it. But if you look into the code behind file MainWindow.xaml.cs, I use this button resource there to add it to the window from there. ReSharper should check this before recommending removing this code or not recommend this if checking is not possible as this is a very dangerous recommendation: if the developer removes this code, the project will still build and run.

Thanks,
Bernhard

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>