예제 #1
0
        static void Main(string[] args)
        {
            string file = @"TestDll.dll";

            var vm = new DotNetVirtualMachine(new DotNetFile(file));

            vm.Start();

            Console.WriteLine("Program exited.");
            Console.ReadLine();
        }
예제 #2
0
        protected override void BeforeRun()
        {
            CosmosVFS fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            Console.Clear();
            Console.WriteLine("Cosmos booted successfully.");

            try
            {
                var fl = new DotNetFile(TestApp.file);
                var vm = new DotNetVirtualMachine(fl);
                vm.Start();

                Console.WriteLine("Program exited.");
                Console.ReadLine();
            }
            catch (Exception x)
            {
                Console.WriteLine("Caught: " + x.Message);
            }
        }