Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pre-Build Events in VB6 Ide (similar to Visual Studio 2005)

Tags:

Does anyone know if VB6 IDE has the ability to run pre-build events prior to making and compiling the code (this is for creating a .vb file from a template file for subversion revision numbers to be compiled into the code using SubWCRev.exe).

Thanks

like image 548
Belliez Avatar asked Feb 17 '09 13:02

Belliez


People also ask

What is build events in Visual Studio?

MSBuild is the build engine that Visual Studio uses to process your project file when it performs a build. A build event in the IDE results in an MSBuild target in the project file. You can use any MSBuild property that is available in the target in your project file (for example, $(OutDir) or $(Configuration) ) .

Is VB6 an IDE?

Typically, the VB6 IDE installed these controls to the developer machine by default. The developer still needs to redistribute these files with the application. The supported version of the files is available online on the Microsoft Download Center (https://go.microsoft.com/fwlink/?LinkID=142927).

How do I open a build event in Visual Studio?

Go to the Solution Explorer the right-click the project then select Properties then go to the Build Events tab. Now if you build the project based upon the selection of configuration name , the Web. config file will be updated.

Why we use Visual Studio?

It is used to develop computer programs, as well as websites, web apps, web services and mobile apps. Visual Studio uses Microsoft software development platforms such as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store and Microsoft Silverlight.


1 Answers

There is no method to do this from the IDE. My company built a utility (in VB6) to do our automated build process including steps like you mention (updating version numbers, etc).

The essential trick is that you can run VB6.exe from the command line to compile projects. To see a list of all the option just goto the VB6 directory and type

VB6 /?

A list of all the command line options will appear.

This is what we use for our build utility.

VB6 /Make <project name> /out <errorlog filename>

We copy our project to a temporary project files and alter it using check boxes and parameters files. For example we can choose to compile everything as binary compatible or project compatible. The VB6 project files are easy to manipulate as they are just text. There are any number of things you can do if you write your own build utility.

like image 156
RS Conley Avatar answered Sep 21 '22 17:09

RS Conley