4
Answers

Errors compiling C# programs from command line

satish_talreja

satish_talreja

20y
2.1k
1
Hello All I am a beginner in C#. I have installed the 106 MB Microsoft.NET SDK. I tested by compiling and executing "HelloWorld.cs" from the command prompt(I do not have VS.NET). It all went smoothly. Now I tried to compile and run a cs program that should simply show me a window. But I am getting the error: *********************************************************************** The type or namespace "Winforms" does not exist in the class or namespace "System". *********************************************************************** The error code is CS0234. I read somewhere that the the references to the DLLs should be added in the project page. But since I do not use VS.NET I cannot do this. Is there any way to sort this problem out? Please help!! ALL suggestions are welcome. BUT I can do this only using Notepad and Command prompt. Regards Satish Kumar
Answers (4)
0
satish_talreja

satish_talreja

NA 12 0 20y
I fixed the error by "using" System.Windows.Forms instead of System.WinForms The SharpDevelop IDE really looks quite good. Regards Satish
0
satish_talreja

satish_talreja

NA 12 0 20y
I have downloaded and installed SharpDevelop but the same error is still persisting. Please help!! Regards Satish
0
satish_talreja

satish_talreja

NA 12 0 20y
Thank you for suggestion KevinT. I am downloading SharpDevelop and hopefully that should solve the problem. Regards Satish
0
kevint

kevint

NA 54 0 20y
Satish, why don't you try using #develop? (It is free, and much better to start off on than notepad)... Regards KevinT