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

RSRP-469093: Static Resource from another project not found in Designer

$
0
0
Reporter Maria Pleskunina (Maria.Pleskunina) Maria Pleskunina (Maria.Pleskunina)
Created Apr 4, 2018 7:30:44 PM
Updated Apr 7, 2018 10:58:24 AM
Resolved Apr 6, 2018 3:18:08 PM
Subsystem XAML
Assignee Sergey Kuks (coox)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.1
Affected versions 2017.3.5, 2018.1
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
I have three projects: the main application, the controls and the styles. A resource dictionary from styles is included in the app.xaml of the main project. The controls work fine in Designer, but Resharper warns about not finding the static resources. I tried to include a fake app.xaml in the controls project (https://stackoverflow.com/questions/27899875/wpf-resource-is-not-found-by-resharper-in-design-time-but-solution-builds), but that only works for resources explicitly included in this app.xaml file. As you can see in UserControl1, ColorA is correctly included directly from the controls app.xaml, ColorB is ignored (probably because it is included as DynamicResource) and ColorC and ColorD are marked as not resolved.
Is there a way to tell Resharper where the correct resources are? I don't want to include them as project resources in the controls project, because they are not needed in all use cases.


Works fine in R# 2017.2.2.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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