Skip to content

Instantly share code, notes, and snippets.

@Swizzy
Swizzy / EmbeddedAssemblyManager
Created November 2, 2013 16:38
A Class for use when embedding assemblies that may have embedded assemblies in them (this will take care of all of it, just run PreLoadAssemblies() once then add CurrentDomainAssemblyResolve to the current domain AssemblyResolve event like so (NOTE: This must be done BEFORE anything is actually running): AppDomain.CurrentDomain.AssemblyResolve +…
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
internal static class EmbeddedAssemblyManager {
private static readonly Dictionary<string, Assembly> Assemblies = new Dictionary<string, Assembly>();
internal static void PreLoadAssemblies() {