我的C#编译的时候为什么错误?
cfgm 2003-05-10 11:40:40 guoxin.cs原码如下:
-----------------------------
class guoxin
{
static void main()
{
System.Console.Write("my first c# program");
}
}
-----------------------------
我装了.net framework sdk 1.0
然后在该目录下执行: csc guoxin.cs
结果提示是这样的:
------------------------------------
copyright <c> microsoft corproation 2001. all rights reserved
error CS5001: Program 'guoxin.exe' does not have an entry point defined
------------------------------------
不知道是怎么回事!?