I know there are many answers on this topic, but the example code that I found in this answer does not work for every .dll
I used this example.
public App() { AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(ResolveAssembly); } static Assembly ResolveAssembly(object sender, ResolveEventArgs args) {
When I created a small program with only one window, it worked for her, but it did not work with my "big" dll. The settings in the "big" dll are the same as in my small program.
I can’t imagine why it sometimes works, and sometimes it doesn’t work. I also tested it with ICSharp.AvalonEdit.dll, unsuccessfully ..
can anyone imagine where the error is?
Change 1
When I run my program, he says that she did not find my dll.
Edit 2
I think I got the gist of my problem. If one of the DLLs I want to combine contains a link to a different dll, than I have become a FileNotFoundException . Does anyone know how to load / add also the internal required dll
Edit 3
When I use the code from Jiří Polášek, it works for some. My Fluent shows the error "Please attach a ResourceDictionary with styles, but I did it already in my App.xaml
<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Office2010/Silver.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources>
source share