2011-03-17 84 views
1

我已經使用下面的代碼(cosmos + Visual Studio 2008),但按F5應用程序不運行,而是提供了一個錯誤:「microsoft visual studio遇到錯誤並且需要關閉」如何運行cosmos應用程序

using System; 
using System.Collections.Generic; 
using System.Text; 
namespace cosmos.user.kernel 
{ 
    public class program 
    { 
    public static void Init() 
    { 
      Cosmos.Sys.Boot xBoot = new Cosmos.Sys.Boot(); 
      xBoot.Execute(); 
     //Main(); 
     } 
     static void Main() 
     { 
      // Boot the Cosmos kernel: 
      Cosmos.Compiler.Builder.BuildUI.Run(); 
      //Cosmos.Sys.Boot xBoot = new Cosmos.Sys.Boot(); 
      //xBoot.Execute(); 

      Console.WriteLine("Cosmos booted successfully. Type a line of text to get it echoed back:"); 
      string xResult = Console.ReadLine(); 
      Console.Write("Text typed: "); 
      Console.WriteLine(xResult); 
     } 
    } 
} 
+0

測試您是否可以運行其他應用程序! – Hossein 2011-03-17 17:42:58

+0

我可以在visual studio2008上運行程序..但這只是一個簡單的程序... n沒有運行:-( – user635545 2011-03-17 17:48:36

回答

0

由於Cosmos是一個不同的操作系統,所以Visual Studio可能在嘗試調試這件事情時遇到問題。

我會檢查什麼Cosmos FAQ並找出該怎麼做。瀏覽常見問題我自己,我看到了以下聲明:

What version of Visual Studio can I use to develop Cosmos?

Currently we only support Visual Studio 2008. We plan to support Visual Studio 2010 in the future, but right now we have more important features to complete.

另外,我在自己的Wiki注意到,一些人有一個錯誤崩潰與VS 2008的整合。