Get Build Specification Version VI

Owning Palette: Application Builder VIs

Requires: Base Development System

Gets the version information of a build specification. This VI returns the Major, Minor, Fix, and Build version numbers, which correspond to the version numbers on the Version Information page of the properties dialog box for the build specification.

You can use this VI to get the version information for a stand-alone applications, installers, .NET interop assemblies, packed libraries, shared libraries, and source distributions.

Note  Installer build specifications contain only Major, Minor, and Fix version numbers.

This VI returns an error if you attempt to get version information for a zip file.

Details  

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Get Build Specification Version (path)

Path to project specifies the full path to the LabVIEW project (.lvproj) file that contains the build specification.
Name of build specification specifies the name of the build specification for which you want to get version information. Enter the name that appears under Build Specifications in the Project Explorer window to retrieve the version information of a build specification.
Name of target specifies the target that contains the build specification. The target is My Computer by default.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
error out contains error information. This output provides standard error out functionality.
Build Specification Version returns the version information of the build specification.
Major specifies the major version. This number may increment to reflect significant feature changes.
Minor specifies the minor version. Similar to the Major version number, this number may increment to reflect minor feature changes.
Fix specifies the fix version number. This number may increment for smaller changes, such as bug fixes.
Build specifies the build number. This number may increment to reflect nightly builds.

Get Build Specification Version (project reference)

Project reference specifies a reference to the LabVIEW project (.lvproj) that contains the build specification.
Name of build specification specifies the name of the build specification for which you want to get version information. Enter the name that appears under Build Specifications in the Project Explorer window to retrieve the version information of a build specification.
Name of target specifies the target that contains the build specification. The target is My Computer by default.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
dup Project reference returns an unchanged reference to the LabVIEW project that contains the build specification.
error out contains error information. This output provides standard error out functionality.
Build Specification Version returns the version information of the build specification.
Major specifies the major version. This number may increment to reflect significant feature changes.
Minor specifies the minor version. Similar to the Major version number, this number may increment to reflect minor feature changes.
Fix specifies the fix version number. This number may increment for smaller changes, such as bug fixes.
Build specifies the build number. This number may increment to reflect nightly builds.

Get Build Specification Version Details

The following block diagram displays a common use case of how this VI works with the Set Build Specification Version VI and Build VI to manage an automatic nightly build process.

Get Build Specification Version.vi—Gets the Major, Minor, Fix, and Build version numbers after reading a project path or project reference.
In Place Element Structure—Reads the Major, Minor, Fix, and Build version numbers returned by the Get Build Specification Version VI and increments only the Build version number.
Set Build Specification Version.vi—Sets the new version information with an incremented Build number.
Build.vi—Creates the new build output with the new version information.