Click here to Skip to main content
15,900,378 members

Comments by lackonagy (Top 14 by date)

lackonagy 22-Apr-11 0:42am View    
Hi SAKryukov,

The AssemblyResolve handler is the same. Here's the difference:
- if the Main() function references a class that is in another assembly then the AssemblyResolve won't be called and the app will fail at startup;
- if AssemblyResolve is in your Main() method, but the reference to the class declared in the other assembly is in a different method (that is eventually called by the Main()) then everything is OK.

I have uploaded the source here: http://dl.dropbox.com/u/7725453/DotNET_4_0.ZIP

If you move the 3 lines of code from the DoProcess() function into the Main() the app will fail as I mentioned in my first post.
lackonagy 21-Apr-11 10:57am View    
Thanks Csongi. Excellent solution! This is the last thing I would've though of...
lackonagy 21-Apr-11 10:56am View    
I've tested it. It works. I guess 5 means 5 stars rating.
lackonagy 21-Apr-11 10:52am View    
Deleted
I've tested it. It works. I guess 5 means 5 stars rating.
lackonagy 21-Apr-11 10:49am View    
It works indeed.