CSC not found

  • Thread starter Thread starter Thomas Scheiderich
  • Start date Start date
T

Thomas Scheiderich

I have Visual Studio .Net loaded and it works fine.

I am trying to run csc from the command line in my wwwroot folder and I
get a message that says it doesn't exist. I get that from the root also.

I would have thought that when I installed Visual Studio, it would have
set it up correctly.

What do I need to do to make it work?

I am running on W2K server.

Thanks,

Tom.
 
Hi Thomas,

You would not be having the CSC in your "Path". there are a couple of things
that you can do about this
1) add the directory where CSC.exe exists to your path (you can do this by
using set path = %Path;directory_to_CSC)
2) Navigate to the directory where CSC is present and run it from there
3) Open the VS.NET command prompt ( Start-->VS.NET 2003-->VS.NET Tools)

HTH
-Diwakar
 
Make sure csc.exe is in your path. The VS.NET installation doesn't add the
csc.exe directory to your path. The Visual Studio .NET Command Prompt
modifies the path in that command prompt to include paths relevant to the
..NET Framework tools. You could either use the absolute path to reference
csc, or run the vsvars32.bat (in the Common7\tools directory of your VS.NET
installation) before running csc. A third option is to manually add the
directory in which csc.exe is in to your path.

Hope this helps.
 
Hi Thomas,

Just to add to the other messages, CSC.EXE would be found in
%windir%\Microsoft.Net\Framework\v1.1.4322
or v1.0.3705 for the older v1.0

Happy coding!
Morten
 
Back
Top