I have a WPF application that works as an add-in in another application. (In this case, it is COM, but I do not think it matters to the problem that I have)
The application works fine when I run it offline. When working as an add-in, there is a problem with resources.
First: (minor)
The "pack:" uri scheme is not available at all. I can get around this, but it would be nice to understand why (and if this can be solved)
Second: (showstopper)
XAML resources cannot be found (XAML found!). The errormessages states that Assembly.GetEntryAssembly () is null (which is understandable) and that I have to set Application.ResourceAssembly.
The problem is that my application consists of two assemblies that contain XAML and resources. Which should I install as a resource assembly? I tried both and none of them work. (The errormessage simply says that the resource was not found)
Resources that cannot be found are plain text with an autogenerated static class. XAML looks like this:
<TextBox Text="{StaticResource my:Texts.ButtonText}">
source
share