First I include a shared Link .cs file and tried to get version number with
then I tried that
any tip on how to get the version from the attribute of the files to install?
As a side node I tried to upgrade the wixsharp package in my installer.
"update-package wixsharp" didn't work smoothly because
var ava = (System.Reflection.AssemblyVersionAttribute)Attribute.GetCustomAttribute(typeof(Script).Assembly, typeof(System.Reflection.AssemblyVersionAttribute));
var v = ava != null ? ava.Version : "Current";
This didn't seem to workthen I tried that
var ass = System.Reflection.Assembly.LoadFile(src_dir + @"\RPGStoryboards.exe");
var ava = (System.Reflection.AssemblyVersionAttribute)Attribute.GetCustomAttribute(ass, typeof(System.Reflection.AssemblyVersionAttribute));
var v = ava != null ? ava.Version : "Current";
program exited with code 255! :'(any tip on how to get the version from the attribute of the files to install?
As a side node I tried to upgrade the wixsharp package in my installer.
"update-package wixsharp" didn't work smoothly because
- Setup already exist! (had to rename my setup class)
- allegedly can't add a reference to Microsoft.CSharp, I then made my installer a .NET4.5 assembly, but it didn't add it anyway, though it succeeded! :-o