c# - Winform App Version After Installation is Always 0.0.0.0 -
i have winform application (c# & .net 4.0). deployment use wix installer. after installation program shows version 0.0.0.0. doing mistake?
in project changed assemblyinfo (so should automatiacly generate version when build):
[assembly: assemblyversion("1.1.*")] [assembly: assemblyfileversion("1.1.*")]
in wix bind version this:
<?define productversion="!(bind.fileversion.iutexe)"?> <?define upgradecode="guid"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <product id="*" name="installer update test" language="1033" version="$(var.productversion)" manufacturer="manufacturer" upgradecode="$(var.upgradecode)"> ...
as said, after installation, windows shows verion 0.0.0.0.
anyone had simmilar problem?
thank help.
edit: when try in code:
var version = system.reflection.assembly.getexecutingassembly().getname().version; label2.text = string.format("my application version {0}", version);
it shows correct version:
edit 2: how shows in properties:
Comments
Post a Comment