注意区分大小写。
例如:
using System;
Console.WriteLine("aaa");

解决方案 »

  1.   

    C#和java一样,对大小写是很敏感的
      

  2.   

    要一个类,并且类中必有Main()方法.
      

  3.   

    我建议初学的朋友还是在studio 2003平台上做测试,象楼主提的问题,在编程是平台是提示的
      

  4.   

    我在想你建的工程是Console Application吗,你不要是健了个Windows Applivation哈,要是你确定是健的Console Application工程,把下面代码覆盖系统自动生成的代码,要是没OK的话,要么就是你的.net没装好,要么就是你特别帅using System;namespace test1
    {
    /// <summary>
    /// Summary description for Class1.
    /// </summary>
    class Class1
    {
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main(string[] args)
    {
    //
    // TODO: Add code to start application here
    Console.WriteLine("aaa");
    Console.Read(); //
    }
    }
    }