Compile issues

K

Kent Tegels

Greetings,

I've written some code for a presentation I'm scheduled
to give in a couple of weeks. It compiles nicely instead
of VS.NET 2003, but is giving me fits when I try to
complie it from the command line.

C:\scriptingdemos\WhatsRunning.vb(10) : error
BC30456: 'Process' is not a member of 'Diagnostics'.

procs = System.Diagnostics.Process.GetProcesses()
~~~~~~~~~~~~~~~~~~~~~~~~~~

Which of course, it is.

Here's the compile command I'm using:

vbc.exe /reference:Microsoft.VisualBasic.dll /optimize-
/debug:full /warnaserror-
/optionexplicit+ /optionstrict+ /imports:System /verbose
WhatsRunning.vb

I think it's gotta be that I'm referencing something I
need too, but I have no idea what .DLL contains
Diagnostics. Referencing ServiceProcess doesn't seem to
help.

Anybody got a suggestion here?

Thanks!
Kent Tegels
 
S

Shawn Farkas [MS]

Hi Kent,

System.Diagnostics.Process is found in the System.dll assembly. You'll need to add a /r:System.dll to your command line to reference this assembly.

-Shawn

--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
--------------------
 
K

Kent Tegels

DOH! I should have caught that!
Thanks, Shawn
kt
-----Original Message-----
Hi Kent,

System.Diagnostics.Process is found in the
System.dll assembly. You'll need to add a /r:System.dll
to your command line to reference this assembly.
confers no rights. Use of included script samples are
subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all
responses to this message are best directed to the
newsgroup/thread from which they originated.
 

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