In a C # project built with VS2013, I can put it in the AssemblyInfo.cs file:
[assembly: AssemblyInformationalVersion("7.1.0.0 Private (Debug build)")]
When I used the FileVersionInfo.GetVersionInfo.NET API for an executable from another project, I found these values:
- Product Version: 7.1.0.0 Private (debug build)
- ProductMajorPart: 7
- ProductMinorPart: 1
When I use the same attribute and string value in a C # project built with VS2015, the ProductMajorPart and ProductMinorPart properties are reported as zero!
Does anyone know if behavior change is intended?
I examined the binary version information found in the executables, and although the string values in the version information were expected in both files, the VS2015 executable has zero values in the VS_FIXEDFILEINFO.dwProductVersionMS and VS_FIXEDFILEINFO.dwProductVersionLS fields.
source
share