RE: Console Application Testing



Hello Greg,

From your post, my understanding on this issue is: you wonder how to run
the Visual Basic compiler, and how to compile a project to exe with
vbc.exe. If I'm off base, please feel free to let me know.

For your first question, vbc.exe could be accessed in Visual Studio Command
Prompt (Windows Start menu -> All Programs -> Microsoft Visual Studio 2005
-> Visual Studio Tools -> Visual Studio 2005 Command Prompt). If you
directly run vbc.exe in Windows Command Prompt (Windows Start menu -> All
Programs -> Accessories -> Command Prompt), vbc.exe is not added into the
Path environment variable by default, and we may get the error message:
VBC.exe is not recognized as an internal or external command, operable
program or batch file. If you want to run the vbc.exe in Windows command
prompt, please add the vbc.exe path
(C:\windows\Microsoft.NET\Framework\[version]) to the Path environment
variable.

For you second question:
a). If you want to compile the project in command prompt with vbc.exe,
please refer to the sample command lines in MSDN article
http://msdn2.microsoft.com/en-us/library/4dehewf5(vs.80).aspx. For
instance, the command:
vbc /define:DEBUG=1 /optimize /out:File2.exe *.vb
will compile all Visual Basic files in the current directory, with
optimizations on and the DEBUG symbol defined, producing File2.exe
For more information about Visual Basic Compiler command options, see:
http://msdn2.microsoft.com/en-us/library/s4kbxexc(vs.80).aspx.

b). If you want to compile the project in Visual Studio IDE, please choose
Build -> Build Project in Visual Studio menu bar.

c). The third option is to use msbuild. Apart from allowing you to build
Visual Studio projects within or outside the Visual Studio IDE, MSBuild
also provides you with the ability to customize your own build process by
exposing a rich API for programming custom tasks and loggers. Please refer
to http://msdn2.microsoft.com/en-us/library/ms171479(vs.80).aspx to see how
to write a simple MSBuild project for a Visual Basic project.

Please let me know if you have any other concerns, or need anything else.

Sincerely,
Jialiang Ge (jialge@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • RE: Cant open Websites With VS2008
    ... If it is Vista or 2008, please open Visual Studio as administrator first. ... Please use the following command to reset environment in VS command prompt: ... please we need the following log and exception ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.general)
  • Re: Unresolved external :security_check_cookie@4
    ... > I recently downloaded DX9c and I'm trying to compile my ... If you look at the Summer Update 2004 and the October Update 2004 readme ... Visual Studio version 6 is no longer supported. ... support for Visual Studio 6 may not be ...
    (microsoft.public.win32.programmer.directx.video)
  • RE: Re-Re-Repost: Cannot debug Classic ASP with VS2008+SP1
    ... the "k" command may require some time to load the symbols from ... Microsoft symbol server for the system dlls the first time. ... Open up Visual Studio command prompt ... support you as soon as possible and forward your issue to proper channel. ...
    (microsoft.public.vsnet.debugging)
  • RE: "Rebuild all" from a command line?
    ... We can use the devenv.exe to compile the solution. ... Devenv Command Line Switches ... Use the Windows Script Host to Read, Write, and Delete Registry Keys ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Create my own batch file to compile ASP.NET assemblies
    ... You could use VS.NET in command line mode to compile a solution: ... the command line compiler options are well documented (I ... only I use Visual Studio .NET 2003, the rest are using older technologies ...
    (microsoft.public.dotnet.framework.aspnet)