In my WPF application, I'm trying to load a Resource Dictionary from an external assembly.
It's underlined in the designer with a message "An error occured while locating ..." (my message is in french, so not sure about the exact english version).
Here is what I have in my App.xaml :
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
<ResourceDictionary Source="pack://application:,,,/MYNAMESPACE;component/Themes/MYFILE.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedTabControl.xaml" />
<ResourceDictionary Source="pack://application:,,,/MYNAMESPACE;component/Styles/MYFILE.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
The two lines that are with MYNAMESPACE get underlined with the messages. I left the Mahapps ones because they work fine and don't get underlined. I redacted the names because they're related to my company.
I found some stuff here saying that the xaml build action should be "Resource" (here), but someone is saying this can cause problems. The xaml files in Mahapps are "Page" (mine too) and work just fine.
My assembly is a project of type "User Control Library".