473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Compile issues

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

Jul 19 '05 #1
2 2272
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

Jul 19 '05 #2
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

.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
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...
2
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...
7
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...
13
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...
12
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...
1
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...
6
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...
3
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...
2
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,...
10
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...
0
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...
0
isladogs
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
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)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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....
0
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
0
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.