Command "csc" is not valid.

  • Thread starter Thread starter Thom Little
  • Start date Start date
T

Thom Little

Under Visual Studio .NET 2003 I went to

View | Other Windows | Command Window and issued

csc /t:module StringLib.cs

It responded with ...

Command "csc" is not valid.

What do I need to correct?
 
Yes, the command window has nothing to do with the command prompt. For
that you can use Start->Programs->Visual Studio->Tools->Visual Studio
Command Prompt (or some similar looking path)
Or you could use a regular command window Start->Run->"cmd" and make sure
you have the path to csc.exe written in your path statement under
environment options.

The command window is something you use while debugging. Like entering
the name of a global variable in the command window will give you it's
current value.
 
I found it ... it is a separate tool ... "but the light is so much brighter
over there"
 
Hi Thom,

I guess you'll have to add "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322"
(assuming .net 1.1 is installed in that folder) to PATH command environment
varaible.
 
Or you could use a regular command window Start->Run->"cmd" and make
sure you have the path to csc.exe written in your path statement under
environment options.

That should read "Or you could use a regular command prompt ..." not
window.
 
If you run it from the shortcut provided in the Tools Folder it takes care
of the configuration when you load it. If you launch it this way you do not
have to manipulate the Path statement.
 
Back
Top