VIProductVersion 格式无效,应为 X.X.X.X
invalid VIProductVersion format, should be X.X.X.X
VIProductVersion 可以包含字符串吗??
我将 2017x.1.1.0 设置为产品版本,因此出现无效格式错误。
有什么办法可以解决这个错误吗?
谢谢,
迪帕克
解决此问题的唯一方法是以正确的格式提供版本字符串。您的版本字符串包含一个字母,但它只能包含数字。
Windows 版本字符串的约定是 <major version>.<minor version>.<build number>.<revision>
.
版本号在PE版本资源中有两种不同的存储方式。
VIProductVersion
在名为 VS_FIXEDFILEINFO 的固定块中设置版本号,并且只能包含数字。
您也可以使用VIAddVersionKey
添加字符串信息,这些信息通常显示在UI。
VIProductVersion "1.2.3.4"
VIAddVersionKey FileVersion "1.2hello.3.4" ; Displayed at the top of the version tab on <= WinXP
VIAddVersionKey ProductVersion "1.2.world3.4"
VIProductVersion 可以包含字符串吗?? 我将 2017x.1.1.0 设置为产品版本,因此出现无效格式错误。 有什么办法可以解决这个错误吗?
谢谢, 迪帕克
解决此问题的唯一方法是以正确的格式提供版本字符串。您的版本字符串包含一个字母,但它只能包含数字。
Windows 版本字符串的约定是 <major version>.<minor version>.<build number>.<revision>
.
版本号在PE版本资源中有两种不同的存储方式。
VIProductVersion
在名为 VS_FIXEDFILEINFO 的固定块中设置版本号,并且只能包含数字。
您也可以使用VIAddVersionKey
添加字符串信息,这些信息通常显示在UI。
VIProductVersion "1.2.3.4"
VIAddVersionKey FileVersion "1.2hello.3.4" ; Displayed at the top of the version tab on <= WinXP
VIAddVersionKey ProductVersion "1.2.world3.4"