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.


icon

Inputs/Outputs

  • cprjrn.png Project reference

    Project reference specifies a reference to the LabVIEW project (.lvproj) that contains the build specification.

  • cstr.png Name of 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.

  • cstr.png Name of target (My Computer)

    Name of target specifies the target that contains the build specification. The target is My Computer by default.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • iprjrn.png dup Project reference

    dup Project reference returns an unchanged reference to the LabVIEW project that contains the build specification.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • inclst.png Build Specification Version

    Build Specification Version returns the version information of the build specification.

  • iu16.png Major

    Major specifies the major version. This number may increment to reflect significant feature changes.

  • iu16.png Minor

    Minor specifies the minor version. Similar to the Major version number, this number may increment to reflect minor feature changes.

  • iu16.png Fix

    Fix specifies the fix version number. This number may increment for smaller changes, such as bug fixes.

  • iu16.png Build

    Build specifies the build number. This number may increment to reflect nightly builds.

  • 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.