ReSharper resource resolution - Resource XXX is not found

Hi,

I am using ReSharper 8.2.3 Full edition with Visual Studio 2013 Ultimate update 4 and have the following issue:

I do have a large C# WPF solution many projects.

- Project 1 is a library and contains all WPF resources (styles etc) including a ResourceLibrary.xaml with merged dictionaries.

- Project 2 is the main (runnable) project and contains app.xaml and plenty of views that use the resources in project 1.

- Project 3 is a library and contains plenty of views and user controls that use the resources in project 1.

My problem is that all views and user controls in project 3 need to include the resource library in project 1 to avoid the ReSharper "Resource XXX is not found" warning. I.e. the following lines will eliminate the warning:    

<UserControl.Resources>

  <ResourceDictionary <MyPath...>;component/ResourceLibrary.xaml" />
</UserControl.Resources>

If I remove the above lines, the wanings appear but the solution builds and runs just fine.The thing is that for performance reasons, I do want to avoid the inclusion of ResourceLibrary.xaml in every single XAML file but I would still like ReSharper to warn me about "real" missing resources, so just turning of those types of warning is not an option.

How can I achieve this?

I have googled a lot and searched this forum but unfortuntately without result.Worth to mention is that Project 2 contains the above code lines in app.xaml and in that case it works fine to skip them in all other views and user controls within project 2. But since project 3 is a library I cannot have the same scenario here.

Thanks in advance!

Please sign in to leave a comment.