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 2 2275
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" <ke**@troll.tegels.org> Sender: "Kent Tegels" <ke**@troll.tegels.org> Subject: Compile issues Date: Fri, 18 Jul 2003 09:49:35 -0700 Lines: 32 Message-ID: <00****************************@phx.gbl> 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
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" <ke**@troll.tegels.org> Sender: "Kent Tegels" <ke**@troll.tegels.org> Subject: Compile issues Date: Fri, 18 Jul 2003 09:49:35 -0700 Lines: 32 Message-ID: <00****************************@phx.gbl> 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:101697NNTP-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
insteadof 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
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: rnair20 |
last post by:
Hi All,
I am running VB.NET 2003 . The solution has several projects. Recently I am facing several issues with compilation. It forces me to rebuild the solution for a single and simple code line...
|
by: Kevin Yu |
last post by:
hi all
can anyone point me the right document on asp.net 1.1 page compile model? I
need to know the detail from user request to IIS and aspnet_isapi.dll to
aspnet_wk.exe then how the page is...
|
by: Arne |
last post by:
I am porting a website to ASP.net 2.0. Temporarily I compile with Visual
Studio 2003 and deploying to ASP.net 2.0. How do I compile my website under
ASP.Net 2.0? I know it can compile each page as...
|
by: Genady Beryozkin |
last post by:
Hi,
I've read the article at
http://msdn2.microsoft.com/en-us/library/ms235211.aspx
about how to compile MFC/ATL code, but I still have one question unanswered:
Should I have the
CComModule...
|
by: Ark |
last post by:
Hello NG,
I arrange data in structs like
{
members...
uint16_t crc;
more members, maybe...
}
Then I need to save them, up to and including crc, in non-volatile
memory or a file, as the case...
|
by: Larry Epn |
last post by:
I've created a project from Microsoft's "club.vsi". I don't want inline code
so I've separated all aspx and ascx pages into code-behind pages. I'm
compiling the project and continue to get this...
|
by: donet programmer |
last post by:
I have an app that I created in ASP.NET 1.1 using VS.NET 2003. Does
anybody know if its possible to compile this application using VS.NET
2005 in .NET 1.1 ( I don't want to compile on .NET 2.0...
|
by: =?Utf-8?B?QWxleGFuZGVyIFd5a2Vs?= |
last post by:
My application is taking way too long to build. It use to never take so
long. I change only line and I think it recompiles all the classes in the
assembly because it hangs forever. Here is the...
|
by: Andrus |
last post by:
I need compile in-memory assembly which references to other in-memory
assembly.
Compiling second assembly fails with error
Line: 0 - Metadata file 'eed7li9m, Version=0.0.0.0, Culture=neutral,...
|
by: nik |
last post by:
Hi,
I've compiled my application on my vista machine, and it won't run at
all on my xp machine. In the windows error report I get Exception
code; 0xe0434f4d. I searched for that exception, but...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |