Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 04-02-2009, 07:00 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Jan 2009
Location: CHENNAI
Posts: 18
Default Need help with compilation of C# programs


I'm using notepad++. it's an opensource software. how to compile C# programs. suppose i can't compile it using notepad++ suggest alternatives..!
manoj_mafiosi is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 05-02-2009, 06:02 PM   #2 (permalink)
Apprentice
 
Join Date: Jan 2009
Posts: 69
Default Re: Need help with compilation of C# programs

You need the dotNET Framework. If you have that already, locate csc.exe, and add the path to your PATH variable.

Then you can fire up a cmd prompt and compile any file anywhere. Or, you can setup a run command for cs files in Notepad++ or Textpad. In either case, the runnable will be the csc.exe, and that's basically for compiling. The active file parameter is usually a %1, or %s, depending on the tool. Check the documentation to figure it out.
RChandan is offline  
Old 06-02-2009, 02:23 PM   #3 (permalink)
In The Zone
 
Pragadheesh's Avatar
 
Join Date: Jul 2006
Location: Coimbatore
Posts: 403
Default Re: Need help with compilation of C# programs

Notepad++ is just a text editor that supports syntax highlighting for 44 programming, scripting, and markup languages.Also allowing us to define our own language, using the built-in User Language Define System.

why dont you use MS Visual Studio or some other IDE for writing your C# code than doing it in a text editor.
also SharpDevelop is a free ide for C# and VB.NET projects on Microsoft's .NET platform.
Pragadheesh is offline  
Old 08-02-2009, 10:02 PM   #4 (permalink)
Right Off the Assembly Line
 
Join Date: Feb 2009
Location: Kanpur
Posts: 23
Smile Re: Need help with compilation of C# programs

There are a few options u can try:

1. either use an IDE ;like Microsoft Visual Studio and in that u can directly compile and execute a C# program by Ctrl+F5. MS Visual Studio installs dotnet framework during its installation (MS Visual Studio 2005 has .NET framwork 2.0 and 2008 version has .NET framework 3.5 with it.)

2. another way is to install only dotnet framework (2.0 or 3.5) whatever u want to. Then, u write the C# program in notepad++ or any text editor. (notepad++ is merely a text editor, more enhanced than notepad).
Locate the directory where dotnet framework has installed csc.exe. Copy ur C# code file in that folder and compile using "csc abc.cs" (without quotes). abc.cs is ur C# code file with extension .cs. Then run file using "cs abc". And u are done, where cs is the interpreter.
Another way, if u dont like to copy the file to that folder, then u can set the path of csc.exe in ur environment variables and then u can directly compile n execute from the command prompt.
gaurarpit is offline  
Old 09-02-2009, 10:20 PM   #5 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Need help with compilation of C# programs

Or, if you really want to be open source, go for the Mono Project.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 10-02-2009, 07:10 PM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Feb 2009
Location: Kanpur
Posts: 23
Smile Re: Need help with compilation of C# programs

^^^^^

You are promoting pirated copy of books. O'Reilly doesnt allow free distribution of its publication, and u have given so many links of Head First series...
gaurarpit is offline  
Old 17-02-2009, 09:02 PM   #7 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Need help with compilation of C# programs

^^ huh?
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 19-02-2009, 06:24 PM   #8 (permalink)
Apprentice
 
Join Date: Feb 2007
Posts: 98
Default Re: Need help with compilation of C# programs

dude use Microsoft Visual C# Express edition. Its free and its great....
Jayanth.M.P is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
operating system and compilation kapil1986 Internet & WWW 4 12-09-2008 06:56 PM
Multiboot DVD compilation sureshkumar Software Q&A 4 30-12-2007 11:45 PM
photo compilation imported_tarang QnA (read only) 3 01-02-2006 06:59 AM
Linux kernel compilation problem .. neo_the_one Open Source 2 01-10-2004 07:15 PM

 
Latest Threads
- by gforz
- by soumya
- by Sujeet
- by icebags
- by Charan

Advertisement




All times are GMT +5.5. The time now is 03:06 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2