Another Newibie Post: Path to csc.exe

J

John Adcock

Hello, Everyone!

My Visual Studio IDE seems to be working properly but command line
compilation won't work because csc.exe is not in the path statement.

When I try to envoke the compiler (with a "csc filename.cs", from within the
directory where the source file is located), I get an error message: ""csc"
is not recognized as an internal or external command, operable program or
batch file".

I have three copies of csc.exe on my XP Pro SP2 system thus:

C:\WINDOWS\ServicePackFiles\i386\csc.exe 8/3/2004 9:11 PM
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc.exe 7/15/2004 4:34 AM
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe 7/15/2004 11:23 AM

The .NET Framework SDK is installed on the system.
The Platform SDK for Windows XP SP2 is installed on the system.

Doesn't the .NET Framework SDK put the path to the (correct version of)
csc.exe in the path statement?


Thanks in advance for any comments,

John Adcock
 
J

John M Deal

Nope. If you take a look at the start folders for VS.Net it has a
command line batch file that sets them up for you. Here's a link to a
registry hack that will allow you to open a command prompt with the
vs.net settings already made (or so they claim). Hope it helps

http://www.larkware.com/Articles/VS.NETCommandPromptHere.html

Have A Better One!

John M Deal, MCP
Necessity Software
 

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