i want to load all *.dll files from a directory, and to compare the date of each *.dll file with Datetime.Now
i use for this the Assembly factory :
Assembly assembly = Assembly.LoadFile(path);
try
{
var myTypes = assembly.GetTypes();
foreach (var myType in myTypes)
{.....}
}
the problem is when i want to replace the current *.dll file with the new *.dll file, i get the error : the *.dll file is used by an other process (My assembly)
so i want to run my assembler on an other domain, and when i cancel this domain my *.dll file will be free.
thx for your help.