Command "csc" is not valid.

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?
 
M

Morten Wennevik

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.
 
T

Thom Little

I found it ... it is a separate tool ... "but the light is so much brighter
over there"
 
M

Miha Markic

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.
 
M

Morten Wennevik

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.
 
T

Thom Little

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.
 

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