I am using below mentioned code snippet. but the codebase property in null, so from where can we get the path ?
public partial class App : Application
{
public App()z
{
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
}
private Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
// how to return the assembly ?
// how to get the path of referred/missing assembly ?
return Assembly;
}
}