Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Errors using command line to compile

Status
Not open for further replies.

SatishPutcha

Programmer
Joined
Mar 12, 2002
Messages
256
Location
IN
Hello All

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.

Only please remember I can do this only using Notepad and Command prompt.

Regards
Satish Kumar
 
Christiaan

Thank you for the response. I shall try them out.

You had mentioned about "imports" , would that be about the libraries we include with the "using" keyword? Please confirm.

Thanks again.

Regards
Satish
 
yep, thats it.
you are in the vb.net forum and there we use imports instead of using. there is also an C# forum

Christiaan Baes
Belgium

What a wonderfull world - Louis armstrong
 
Sorry that this post was in the wrong place.

But your suggestion was of great help. The SharpDevelop IDE is very impressive though the error persisted. But I fixed that by changing System.WinForms to System.Windows.Forms.

Regards
Satish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top