I am using WPFLocalizeExtension library.
Until now, I have used the library as below.
xmlns:lex="http://wpflocalizeextension.codeplex.com"
<Button Content="{lex:Loc key=Yes}"/>
Of course, the code above works well, if "Yes" word is in the current assembly.
But this case, I would like to use the resource of the external assembly so I tried as below.
xmlns:lex="http://wpflocalizeextension.codeplex.com"
lex:ResxLocalizationProvider.DefaultAssembly="ApplicationLayer.Define"
<Button Content="{lex:Loc key=Cancel}"/>
But the code above does not work.
Maybe I think, it's because the reference assembly doesn't exist in the current directory.
The path of the file above is the "...\Applications\WpfApp\WpfApp" and the path of the "ApplicationLayer.Define" (The file to reference) file is the "...\Applications\ApplicationLayer.Define".
The resource file to use is in the Properties folder of the "ApplicationLayer.Define" as below.
update
Also, I referenced "ApplicationLayer.Define" assembly into the running application as below.
What I should do to achieve my goal?
Could someone tell me how to solve this problem?
Thanks for reading.
I found a reason that doesn't work.
The above resource file name is "Resource.resx". (see the image file) I changed the resource file name to the "Resources.resx".
And then all works well.
Maybe I think, It's because the WpfLocalizeExtension library finds the "Resources.resx" name for resource to use.
Thanks for your interest.