0

我正在使用下面提到的代码片段。但是代码库属性为null,那么我们从哪里可以获得路径?

  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;
    }
}
4

0 回答 0