Newbie Command line problems

G

Guest

I have tried to compile a custom control into a dll so that I can add it to
the Visual Studio .NET General toolbox, but I keep getting the message: 'csc'
is not a valid command, etc.

The command I am using is: C:> csc /target:library myfilename.cs

I have tried this command from the root (C:>) drive, from the debug folder,
but to no avail.

Could someone please tell me what I an doing wrong?
 
B

Bob

cashdeskmac said:
I have tried to compile a custom control into a dll so that I can add it to
the Visual Studio .NET General toolbox, but I keep getting the message:
'csc'
is not a valid command, etc.

The command I am using is: C:> csc /target:library myfilename.cs

I have tried this command from the root (C:>) drive, from the debug
folder,
but to no avail.

Could someone please tell me what I an doing wrong?

Are you using the cmd.exe or the shortcut created by Visual studio?
On my machine, I can find it at
start > Programs > Visual Studio .net 2003 > Visual Studio tools > visual
studio .net 2003 command prompt

HTH

Bob
 
J

jiangyh

hi cashdeskmac:

You need to run command prompt in the menu-->Microsoft Visual Studio
..net 2003-->visual studio tools-->visual studio .net 2003 command prompt
then compile your source.

jiangyh
 
N

Nick Malik

In addition to the other suggestions, you can simply add the framework
directory to the default PATH and you can access this command from any
command window.

--- Nick
 

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