Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where's my C# compiler (csc)?

Status
Not open for further replies.

redss

Programmer
Oct 20, 2002
195
I've installed visual studio .net 2002 (enterprise architect) and can compile C# from the IDE just fine, but when I try from the command line ("csc helloworld.cs") there is no "csc.exe" in my path.

What is the C# compiler to use from the command line?
 
Never mind - for some reason the installation didn't add the .net bin directory to my path (C:\WINNT\Microsoft.NET\Framework\v1.0.3705) but I found it anyway
 
You should have a shortcut to a "VS Command Prompt" in your Start menu.

You can also add this to registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\AutoRun

with a value of:
"C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat"

That way, whenever you open a command window, your VS variables will already be registered.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top