I am used to write code in VS 2008 < . However now I had to start using Notepad++, and I can't get to run even the HelloWorld program. I followed the steps based in this tutorial: http://www.mastercsharp.com/Article/89/writing-your-first-c-program-hello-world-net-v1-1- I have .NET SDK 2.0 installed, but I still can't get the code running. Basically when I try to execute the file from CMD Propmpt I get a message "HelloWorld" is not recognized as an internal or external command, operable program or batch file. Is there anything else that should be installed? I have everything installed to be able to run the code, but I still can't get it to run. Any help will be apreciated. Thank you!
質問する
8317 次
3 に答える
2
Write your program in Notepad++ (or any other text editor). Then on the console use
C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe HelloWorld.cs
to compile it. Afterwards you can run the generated executable.
于 2013-02-22T11:39:50.190 に答える
1
You can't run HelloWorld.cs, you need to compile it into an executable. Use csc
for that.
Or just install Visual Studio Express, it's free.
于 2013-02-22T11:39:13.460 に答える
-1
Notepad++ 用のCS-Scriptプラグインをインストールできます。プラグインを使用すると、インフラストラクチャ (プロジェクト ファイルなど) を必要とせずに、Notepad++ から直接 C# コード (スクリプト) を実行できます。また、システム CLR Debugger (VS など) が接続された C# スクリプトの便利な起動も提供します。
于 2016-06-22T22:25:33.620 に答える