Hallo

Ich habe es geschafft das er beide Assemblies l�dt.
Wieso er das allerdings macht, weiss ich noch nicht so genau, daran
arbeite ich gerade ;-)

<code>
AppDomain.CurrentDomain.AppendPrivatePath(Application.StartupPath +
@"\dir2\");             

                Assembly asm = Assembly.LoadFrom(Application.StartupPath
+ @"\dir1\myclass.dll");
                
                foreach (Type t in asm.GetTypes()) 
                {
                        Console.WriteLine("\t" + t.FullName);
                }

                Assembly asm2 = Assembly.Load("MyClass, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=null");
                
                foreach (Type t in asm2.GetTypes()) 
                {
                        Console.WriteLine("\t" + t.FullName);
                }

</code>
Alles andere ist gleich

Gru� Eberhard

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Wille
> Sent: Wednesday, July 09, 2003 11:53 PM
> To: [EMAIL PROTECTED]
> Subject: [Csharp.net] Quiz
> 
> 
> Anbei eine kleine Testapplikation...
> 
> Diese l�dt aus den Unterverzeichnissen dir1 und dir2 je eine 
> Assembly die 
> identische Namen haben, aber unterschiedliche Typen 
> enthalten. Warum l�dt 
> er nur die erste Assembly aus dir1?
> 
> Wie bringt man die Applikation dazu, auch die andere aus dir2 
> zu laden?
> 
> Chris
> 


_______________________________________________
Csharp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/csharp.net

Antwort per Email an