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 2282
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: 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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |