command prompt c# compiler

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

Guest

I am doing a course in Visual C#.net. I am at my first very basic one line
program. the book (Visual C# Net) by Joyce Farrell says to run it first from
the command line because it is much simpler. Later I should install the
Microsoft Compiler which has more steps. My problem is when I enter csc and
the program name 'Hello.cs' it says it cant find the compiler. When I enter
tha path the text book says to, it finds the compiler but not the
program.When I change the path to cd c:\ like the school told me to it can't
find the compiler again. Can anyone help me with this. I sure would
appreaciate it. ThankYou in advance. Paul Fiedler
 
Check your PATH environment variable.

See if the compiler and the program are in folders listed in the PATH
environment variable.

Open a Command Prompt
Type:

path

Hit Enter.

It will display something like...

PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;

Make sure that both the program and the compiler are in one of the PATH
folders.

Or add the path to the folder that they are in to the PATH environment
variable.

What folder(s) are the program and the compiler in?

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

..NET framework includes the compilers (so if you don't mind doing all extra menial work you can program in .NET for free).
 

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

Back
Top