这个简单的程序为什么编译不了?
原程序:
Hello.cs
//==================================================
class hello
{
public static void Main()
{
System.Windows.Forms.Messagebox.Show("Hello,World!");
}
}
用csc编译:csc /target:Winexe /out:hello.exe /r:System.dll,System.Windows.Forms.dll,System.Drawing.dll Hello.cs
为什么总是出错,显示:类型或命名空间名称"MessageBox"在类或命名空间"System.Windows.Forms"中不存在(是否缺少程序集引用?)
各位帮帮我,我错在那里?