How is this populate in c#?
I don't understand very well this question (I'm not english but this does not seem clear...)
If you want to read a file version in C#, you can use FileVersionInfo Class
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In c\c++ in the resource editor there is version information that the windows file explorer can see:
==
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION VCI_FILEVERSION
PRODUCTVERSION VCI_PRODUCTVERSION
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE 0x0L
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "100904b0"
BEGIN
VALUE "CompanyName", VCI_CORP
VALUE "FileVersion", VCI_FILEVERSIONS
VALUE "LegalCopyright", VCI_LEGALCOPYRIGHT
VALUE "ProductName", VCI_PRODUCTNAME
VALUE "PRODUCTVERSION", VCI_PRODUCTVERSIONS
VALUE "LegalTrademarks", VCI_LEGALTRADEMARKS
// APP SPECIFIC
VALUE "InternalName", VCI_APPNAME
VALUE "FileDescription", VCI_FILEDESCRIPTION
VALUE "OriginalFilename", VCI_ORIGINALFILENAME
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x1009, 1200
END
END
=
How is this populate in c#?
How is this populate in c#?
I don't understand very well this question (I'm not english but this does not seem clear...)
If you want to read a file version in C#, you can use FileVersionInfo Class
Perhaps a T4 template similar to the following.
Setting the file version information is dependent on the kind of c# project you're working with. As an example, for a .NET framework project the file version information is set through the project properties and stored in the AssemblyInfo.cs file
I partly found it.
But I want to change it in one place and have all c# applications built against that one text source.