How to compile?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

He
I have netframework installed on my system. I created a folder "test" on my C:\ drive. I have a file named "Hello.cs" saved in that directory "C:\test" . Please let me know how to compile this Hello.cs file. I am new to C#.
Thanks

Fayyaz
 
He!
I have netframework installed on my system. I created a folder "test" on my C:\ drive. I have a file named "Hello.cs" saved in that directory "C:\test" . Please let me know how to compile this Hello.cs file. I am new to C#.
Thanks.

If you only have the .NET Framework, you only have what is required to
run .NET applications. If you want to develop/compile .NET apps, you'll
need the .NET SDK which includes the C# compiler (csc.exe) as well as
the VB.NET compiler (vbc.exe):

http://www.microsoft.com/downloads/details.aspx?FamilyId=9B3A2CA6-3647-
4070-9F41-A333C6B9181D&displaylang=en
 
Patrick Steele said:
If you only have the .NET Framework, you only have what is required to
run .NET applications. If you want to develop/compile .NET apps, you'll
need the .NET SDK which includes the C# compiler (csc.exe) as well as
the VB.NET compiler (vbc.exe):

No, the framework includes both of those already. You can compile
VB.NET and C# with just the framework installed. Just put the
appropriate directory (eg c:\WINDOWS\Microsoft.Net\Framework\v1.1.4322)
on the path, and run csc.exe to see the options.
 
I have a getting started page which lists how to get going without VS net
here http://www.publicjoe.f9.co.uk/csharp/csharp01.html. This includes
everything to download including a free IDE called sharpdevelop

Also a bit about command line compiling here
http://www.publicjoe.f9.co.uk/csharp/cs04b.html

and finally how to hack VC6( if you have it) to edit and compile C#
applications here
http://www.publicjoe.f9.co.uk/csharp/useful/hacking.html

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html


Fayyaz said:
He!
I have netframework installed on my system. I created a folder "test" on
my C:\ drive. I have a file named "Hello.cs" saved in that directory
"C:\test" . Please let me know how to compile this Hello.cs file. I am new
to C#.
 
No, the framework includes both of those already. You can compile
VB.NET and C# with just the framework installed. Just put the
appropriate directory (eg c:\WINDOWS\Microsoft.Net\Framework\v1.1.4322)
on the path, and run csc.exe to see the options.

Interesting. Now I want to dig into the SDK and see what the extra 100
megs is for... :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Fresh Install Issue 1
C# 2
nothing happens 2
I need to install C# compiler? 5
C# compiler 1
command prompt c# compiler 2
GCC Compiler in C# Application 2
C#/Mono namespaces 3

Back
Top