O'Reilly logo

Visual Basic 2008 Recipes: A Problem-Solution Approach by Rakesh Rajan, Matthew MacDonald, Allen Jones, Todd Herman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

1.6. Build Projects from the Command Line Using MSBuild.exe

Problem

You need to compile one or more VB .NET files from the command line, and you need to have more precise control over the build process.

Solution

Create a project file, and use the MSBuild.exe utility that ships with Visual Studio 2008. The build project should reference each VB .NET file and compile them using the VB .NET compiler (vbc.exe) via the vbc task.

How It Works

MSBuild.exe is a utility that ships with Visual Studio. It is located in the directory specific to the target framework, such as C:\Windows\Microsoft.NET\Framework\v3.5\. This utility uses an XML project file to perform specified actions on specified files. If you build an application in Visual Studio, a file ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required