Hello:
I have a strange behaviour loading dinamically an assembly with
Assembly.LoadFrom. The DLL is in the same directory as the main EXE, and has
the same name :
AICA.exe
AICA.dll
When I implement( or copy manually) yesterday builded AICA.dll main
application takes it without troubles, but if I build now (today) a new
AICA.dll, the Assembly.LoadFrom static method returns the AICA.exe assembly,
instead of AICA.dll.
Anybody nows why occurs this?
Thanks
Juan
Dmitriy Lapshin [C# / .NET MVP] - 31 Jan 2005 16:01 GMT
Hello Juan,
The Framework considers the name of the file WITHOUT the extension to be the
assembly name (not sure if this can be overridden in the manifest).
Therefore, having two assemblies which differ only in extension is generally
not a good idea. You can however overcome this by having different version
numbers in the DLL and the EXE and by loading the assembly with the Load
method, specifying the desired version number.
But, if possible, I'd recommend that you renamed one of the files.

Signature
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx
> Hello:
>
[quoted text clipped - 15 lines]
>
> Juan