473,387 Members | 1,569 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,387 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 2281
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.