Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: Automatic Versioning

$
0
0
First I include a shared Link .cs file and tried to get version number with
    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 work
then 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
  1. Setup already exist! (had to rename my setup class)
  2. 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

Viewing all articles
Browse latest Browse all 1354

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>