还有 compile是什么? 要怎样弄
当我打这个的时候 csc /nologo /out:hello.exe hello.cs
他会出现 'csc' i ...
qwqwqwqw 发表于 2010-10-16 05:53 PM 
请问你安装 Visual Studio\ Visual C# 了吗?
我不知道Window是不是会自带Compiler, 但是你还是安装吧。
有个秘诀。
Window 7 下, 你可以 Search 出来。
首先, 你Click 着 C:\Program Files\Microsoft Visual Studio x.x
但是不要按进去。
(x = 你的版本)
然后你 Search "vcvars"
我使用vcvars32.bat, 因为我的 os Window 7 是 32 bit。
打开个文件夹, 叫做 hello, 或你喜欢。
把 hello.cs 和 vcvars32.bat 放进hello 文件夹。
因为没人会那么勤劳去背 哪个 bat file 的 location 的。
所以可以的话就放去一个你比较容易见到的地方好了。
然后打开 Command Prompt。
(Window 7\ Vista 可以在 Start Menu 打 CMD, XP 的话请用 RUN。)
键入 cd C:\Users\ASUS\Desktop\hello
我的hello folder 放在 Desktop, 所以我 cd 过去哪个 location。
键入 vcvars32.bat
先让这个 bat 跑先。
键入 csc hello.cs
然后你看到你的 folder 内会多出个 hello.exe 的话, 那么你就成功了。