如何在C#中编译Cosmos [英] how to compile Cosmos in C#

查看:71
本文介绍了如何在C#中编译Cosmos的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Visual C#2010 Express和COSMOS Milestone 4在COSMOS中制作操作系统.
但是,当我按F5调试它时,我得到一个窗口,让我选择仿真器,然后,当我在该窗口上单击构建"时,它将进行构建,并启动一个名为"cosmos builder"的寡妇.我在做什么错?
如果需要,请使用以下代码.

i have been making a OS in COSMOS with Visual C# 2010 Express with COSMOS Milestone 4
but, when i press F5 to debug it, i get a window that lets me select the emulator,ect then , when i click "build" on that window, it dosent build it and it starts a widow called "cosmos builder" . what am i doing wrong?
here is the code if you need it.

using System;
using Cosmos.Compiler.Builder;

namespace CosmosBoot1
{
    class Program
    {
        #region Cosmos Builder logic
        // Most users wont touch this. This will call the Cosmos Build tool
        [STAThread]
        static void Main(string[] args)
        {
            BuildUI.Run();
        }
        #endregion

        // Main entry point of the kernel
        public static void Init()
        {
            var xBoot = new Cosmos.Sys.Boot();
            xBoot.Execute();
            Console.WriteLine("Welcome! You just booted CharlieOS ! Type a command to contenue ");
            Console.ReadLine();
            if (Console.ReadLine() == ("help"))
            {
                Console.Write("Commands: 'help': displays help 'dir': makes a directory.");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
               Console.ReadLine();  }
            else if (Console.ReadLine() == "dir")
            {
                System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"C:\");

                foreach (System.IO.FileInfo file in dir.GetFiles("*.*"))
                {
                    Console.WriteLine("{0}, {1}", file.Name, file.Length);
                }
                Console.ReadLine();
            }
            while (true)
                ;
            
        }
    }
}

推荐答案


看一下这篇关于Cosmos的不错的文章:
Cosmos-C#开源托管操作系统 [ ^ ]

干杯
Hi,
Take a look at this post which is a nice article about Cosmos:
Cosmos - C# Open Source Managed Operating System[^]

Cheers


这篇关于如何在C#中编译Cosmos的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆