PC Review


Reply
Thread Tools Rate Thread

Compile issues

 
 
Kent Tegels
Guest
Posts: n/a
 
      18th Jul 2003
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

 
Reply With Quote
 
 
 
 
Shawn Farkas [MS]
Guest
Posts: n/a
 
      18th Jul 2003
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.
--------------------
>Content-Class: urn:content-classes:message
>From: "Kent Tegels" <(E-Mail Removed)>
>Sender: "Kent Tegels" <(E-Mail Removed)>
>Subject: Compile issues
>Date: Fri, 18 Jul 2003 09:49:35 -0700
>Lines: 32
>Message-ID: <009401c34d4c$920f37f0$(E-Mail Removed)>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Thread-Index: AcNNTJIMKmyFijNMR4WzPO0iwetnEQ==
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>Newsgroups: microsoft.public.dotnet.general
>Path: cpmsftngxa06.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:101697
>NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
>X-Tomcat-NG: microsoft.public.dotnet.general
>
>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
>
>



 
Reply With Quote
 
Kent Tegels
Guest
Posts: n/a
 
      18th Jul 2003
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.
>
>-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.
>--------------------
>>Content-Class: urn:content-classes:message
>>From: "Kent Tegels" <(E-Mail Removed)>
>>Sender: "Kent Tegels" <(E-Mail Removed)>
>>Subject: Compile issues
>>Date: Fri, 18 Jul 2003 09:49:35 -0700
>>Lines: 32
>>Message-ID: <009401c34d4c$920f37f0$(E-Mail Removed)>
>>MIME-Version: 1.0
>>Content-Type: text/plain;
>> charset="iso-8859-1"
>>Content-Transfer-Encoding: 7bit
>>X-Newsreader: Microsoft CDO for Windows 2000
>>Thread-Index: AcNNTJIMKmyFijNMR4WzPO0iwetnEQ==
>>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>>Newsgroups: microsoft.public.dotnet.general
>>Path: cpmsftngxa06.phx.gbl
>>Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.general:101697
>>NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
>>X-Tomcat-NG: microsoft.public.dotnet.general
>>
>>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
>>
>>

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with compile Chris Calzaretta Microsoft VB .NET 1 23rd Feb 2005 03:06 AM
Compile issues rnair20@yahoo.com Microsoft Dot NET 1 1st Sep 2004 02:16 PM
Compile issues rnair20@yahoo.com Microsoft Dot NET Framework 0 1st Sep 2004 11:26 AM
Background Compile Issues William Ryan eMVP Microsoft Dot NET 2 30th Mar 2004 06:02 AM
Background Compile Issues William Ryan eMVP Microsoft VB .NET 2 30th Mar 2004 06:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:58 PM.