public static void LoadOqtaneAssembly(this AssemblyLoadContext loadContext, FileInfo dll)
        {
            AssemblyName assemblyName = null;

            try
            {
                assemblyName = AssemblyName.GetAssemblyName(dll.FullName);
            }
            catch
            {
                Console.WriteLine($"Not Assembly : {dll.Name}");
            }

            loadContext.LoadOqtaneAssembly(dll, assemblyName);
        }
Exemple #2
0
        public static void LoadOqtaneAssembly(this AssemblyLoadContext loadContext, FileInfo dll)
        {
            AssemblyName assemblyName = null;

            try
            {
                assemblyName = AssemblyName.GetAssemblyName(dll.FullName);
            }
            catch
            {
                Debug.WriteLine($"Oqtane Error: Cannot Get Assembly Name For {dll.Name}");
            }

            loadContext.LoadOqtaneAssembly(dll, assemblyName);
        }