Click here to Skip to main content
15,886,676 members
Articles / Programming Languages / XSLT

Version Resource Tool Using XML/XSLT and .NET

Rate me:
Please Sign up or sign in to vote.
2.00/5 (1 vote)
24 Oct 20027 min read 65K   479   22  
A tool for automatically updating version resources in C++, C# and other projects
// This file can be included in a C++ projects .RC file to make use of MKVER generated constants
//

#ifdef APSTUDIO_INVOKED
    #error This file is not editable by Microsoft Visual C++
#endif //APSTUDIO_INVOKED

#ifndef _MAC

#include "winver.h"
#include "version.h"

VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_FILEVERSION_CSV
PRODUCTVERSION VER_PRODUCTVERSION_CSV
FILEFLAGSMASK VER_FILEFLAGSMASK
FILEFLAGS VER_FILEFLAGS
FILEOS VER_FILEOS
FILETYPE VER_FILETYPE
FILESUBTYPE VER_FILESUBTYPE
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK VER_LANGUAGE_AND_CHARSET_STR
        BEGIN
            VALUE "CompanyName", VER_COMPANYNAME_STR
            VALUE "FileDescription", VER_FILEDESCRIPTION_STR
            VALUE "FileVersion", VER_FILEVERSION_STR
            VALUE "InternalName", VER_INTERNALNAME_STR
            VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
            VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
            VALUE "ProductName", VER_PRODUCTNAME_STR
            VALUE "ProductVersion", VER_PRODUCTVERSION_STR
            VALUE "ProductBuildDate", VER_PRODUCTBUILDDATE_STR
            VALUE "Comments", VER_COMMENTS_STR
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", VER_LANGUAGE_HEX, VER_CHARSET_HEX
    END
END

#endif // !_MAC

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Web Developer
United States United States
When I was 14 my physics teacher dragged a dusty Commodore PET out of a cupboard and asked, "Do you think you could do anything with this?"

Comments and Discussions