Exemplo n.º 1
0
        public static void Main()
        {
            Excavator.App app = new Excavator.App();
            string embedPath = ConfigurationManager.AppSettings["EmbeddedResources"];

            AppDomain.CurrentDomain.AssemblyResolve += ( sender, args ) =>
            {
                string resourceName = embedPath + "." + new AssemblyName( args.Name ).Name + ".dll";
                using ( var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream( resourceName ) )
                {
                    Byte[] assemblyData = new Byte[stream.Length];

                    stream.Read( assemblyData, 0, assemblyData.Length );

                    return Assembly.Load( assemblyData );
                }
            };

            app.InitializeComponent();

            app.Run();
        }
Exemplo n.º 2
0
 public static void Main()
 {
     Excavator.App app = new Excavator.App();
     app.InitializeComponent();
     app.Run();
 }
Exemplo n.º 3
0
 public static void Main()
 {
     Excavator.App app = new Excavator.App();
     app.InitializeComponent();
     app.Run();
 }