question about using the command prompt

  • Thread starter Thread starter John Salerno
  • Start date Start date
J

John Salerno

Ok, I'm still a little confused about how to use the command line with
the C# compiler that came with the SDK. I get a message saying the
command isn't recognized, so I guess I'm in the wrong directory, but how
do I find the right one?

Thanks.
 
John said:
Ok, I'm still a little confused about how to use the command line with
the C# compiler that came with the SDK. I get a message saying the
command isn't recognized, so I guess I'm in the wrong directory, but how
do I find the right one?

Thanks.

You need to add the path to the .NET SDK folder to system PATH variable.
The SDK path would be:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\
that's what you add to the environment variable PATH

HIH,
Andrey
 
John said:
Ok, I'm still a little confused about how to use the command line with
the C# compiler that came with the SDK. I get a message saying the
command isn't recognized, so I guess I'm in the wrong directory, but how
do I find the right one?

Thanks.

Ok, I figured this out, but one more question: When I closed the command
window and went back, it defaulted to the regular paths again, so I
would have to keep typing in the path command to get to the compiler. Is
there a way to add it to the list of defaults?
 
John said:
Ok, I figured this out, but one more question: When I closed the command
window and went back, it defaulted to the regular paths again, so I
would have to keep typing in the path command to get to the compiler. Is
there a way to add it to the list of defaults?

If you have Windows 2000/XP, right click on "My Computer"->"Properties"->"Advanced" Tab->Click on
"Environment Variables" and there in "System Variables" box you select "PATH" and click "Edit", then
add SDK path to the line of paths and "Ok". That's it.

By the way why use console? There is a free IDE for .NET - Sharp Develop:
http://www.icsharpcode.net/OpenSource/SD/

Hope it helps,
Andrey
 
John said:
And I guess the IDE that comes with C# .NET Standard is better than the
others?
Is there any?
Well, i like Sharp Develop, but still work on Visual Studio 2003 :)
 
Back
Top