I use ReSharper 8.2.3 Full Edition with Visual Studio Ultimate 2013 and .NET 4.5.
The background is that I have a C# WPF solution with a large number of projects. To simplify the description here, I have the following projects:
Project 1: Library with UI resources (styles, fonts etc), including a resource dictionary named ResourceLibrary.xaml.
Project 2: Main exe with some WPF user controls/views and an app.xaml. The WPF user controls do NOT refer directly to ResourceLibrary.xaml in project 1. The IntelliSense works fine and ReSharper does NOT generate any warnings (blue squiggly lines).
Project 3: Library with some WPF user controls/views. All these user controls refer to ResourceLibrary.xaml:
<UserControl.Resources>
<ResourceDictionary Source="/<my_resource_namespace>;component/ResourceLibrary.xaml" />
</UserControl.Resources>
The IntelliSense works fine and ReSharper does NOT generate any warnings (blue squiggly lines).
The solution builds fine, IntelliSense works (finds the static resources in ResourceLibrary.xaml) and ReSharper does not generate any warnings.
However, if the above lines are removed, IntelliSense does not work and ReSharper generates the warning "Resource XXX is not found". Note that this is NOT the case with the XAML files in project 2 that also uses resources in the resource library. The solution builds fine.
I want to avoid to include the resource library in every XAML file due to performance reasons but I do want ReSharper to give me relevant warnings. Is there a workaround to this problem?
I know I can turn the "The resource XXX is not found" warnings off in the ReSharper, but that would prevent me from detecting real resource problems.