C# How do I start programming in it?!

G

Guest

I have been told C# can be installed for free as long as you don't use visual studio. I am a student and need c# programmin
language for an assignment I'm doing

I have installed .net Framework 1.1 23mb file and .NET sdk approx 100 mb file. I have an overview, samples, quickstar
tutorials, tools and documentation

Please tell me what else I need to install in order to program in C# and where to get it. A step by step explanatio
of how to setup my computer to program in c# would be greatly appreciated

Perhaps I could already have what I need but just don't know how to start programming in C#. If that is the case then tell me how to start programming in C#. Also tell me whether I need to change the path in DOS and how to do this.
 
P

Peter van der Goes

Dave said:
I have been told C# can be installed for free as long as you don't use
visual studio. I am a student and need c# programming
language for an assignment I'm doing.

I have installed .net Framework 1.1 23mb file and .NET sdk approx 100 mb
file. I have an overview, samples, quickstart
tutorials, tools and documentation.

Please tell me what else I need to install in order to program in C# and
where to get it. A step by step explanation
of how to setup my computer to program in c# would be greatly appreciated.

Perhaps I could already have what I need but just don't know how to start
programming in C#. If that is the case then tell me how to start programming
in C#. Also tell me whether I need to change the path in DOS and how to do
this.

Here's a good place to start. You've got the C# compiler already.

http://msdn.microsoft.com/library/d.../cscomp/html/vcgrfBuildingFromCommandLine.asp

Have fun :)
 
K

Klaus H. Probst

Grab your favorite text editor and start coding =)

If you already have the .NET framework SDK then you're all set. To get
started just create a new file, say, "myapp.cs" and type some simple code
into it:

using System;

class MyConsoleApp
{
public static void Main(string[] args) {
Console.WriteLine("Hello, world!");
}
}

I believe the SDK has a file called "vsvars32.bat" that you can run to
create the environment you need to build without changing the path. Run it,
navigate to the folder where your .cs file and enter something like

csc.exe /target:exe myapp.cs

This should generate "myapp.exe" in the same folder.

Everything is downhill from there =)


--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/


Dave said:
I have been told C# can be installed for free as long as you don't use
visual studio. I am a student and need c# programming
language for an assignment I'm doing.

I have installed .net Framework 1.1 23mb file and .NET sdk approx 100 mb
file. I have an overview, samples, quickstart
tutorials, tools and documentation.

Please tell me what else I need to install in order to program in C# and
where to get it. A step by step explanation
of how to setup my computer to program in c# would be greatly appreciated.

Perhaps I could already have what I need but just don't know how to start
programming in C#. If that is the case then tell me how to start programming
in C#. Also tell me whether I need to change the path in DOS and how to do
this.
 
T

Tom Shelton

I have been told C# can be installed for free as long as you don't use visual studio. I am a student and need c# programming
language for an assignment I'm doing.

I have installed .net Framework 1.1 23mb file and .NET sdk approx 100 mb file. I have an overview, samples, quickstart
tutorials, tools and documentation.

Please tell me what else I need to install in order to program in C# and where to get it. A step by step explanation
of how to setup my computer to program in c# would be greatly appreciated.

Perhaps I could already have what I need but just don't know how to start programming in C#. If that is the case then tell me how to start programming in C#. Also tell me whether I need to change the path in DOS and how to do this.


The .NET framework SDK is all you really need. You can use the command
line to compile your applications and write your code in your favorite
text editor....

But, might I suggest you check out SharpDevelop? It has a graphical
form designer, intellisense, code completion, syntax highlighting, etc.
It was writen in C#, and the best part it's free.

http://www.icsharpcode.net

HTH
 

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

Top