By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,566 Members | 1,774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,566 IT Pros & Developers. It's quick & easy.

question about using the command prompt

P: n/a
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.
Nov 16 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
John Salerno wrote:
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
Nov 16 '05 #2

P: n/a
John Salerno wrote:
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?
Nov 16 '05 #3

P: n/a
John Salerno wrote:
John Salerno wrote:
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?


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
Nov 16 '05 #4

P: n/a
MuZZy wrote:
John Salerno wrote:
John Salerno wrote:

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?

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


Thanks.

And I figure I might give the console a try, just to see how it works,
before switching to an IDE. I figure the console will allow me to really
see what's happening, whereas an IDE hides some of the process. But I
don't plan to stick with the console, I'm sure.
Nov 16 '05 #5

P: n/a
MuZZy wrote:
John Salerno wrote:
John Salerno wrote:

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?

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


Btw, have you (or anyone) ever tried the "Key of C#" IDE created by
Charles Petzold? Is it as good as Sharp Develop?

Also, what does the C# .NET 2003 compiler do that these free ones can't?
Nov 16 '05 #6

P: n/a
John Salerno wrote:
MuZZy wrote:
John Salerno wrote:
John Salerno wrote:
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?


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

Btw, have you (or anyone) ever tried the "Key of C#" IDE created by
Charles Petzold? Is it as good as Sharp Develop?

Also, what does the C# .NET 2003 compiler do that these free ones can't?


The compiler is the same, it's the IDE's that might have some different features
Nov 16 '05 #7

P: n/a
MuZZy wrote:
The compiler is the same, it's the IDE's that might have some different features


And I guess the IDE that comes with C# .NET Standard is better than the
others?
Nov 16 '05 #8

P: n/a
John Salerno wrote:
MuZZy wrote:
The compiler is the same, it's the IDE's that might have some
different features

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 :)
Nov 16 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.