VB.NET Get Publish Revision integer

Posted by Berlioz on Stack Overflow See other posts from Stack Overflow or by Berlioz
Published on 2010-05-10T13:17:40Z Indexed on 2010/05/10 14:24 UTC
Read the original article Hit count: 278

Filed under:

How do I get my .NET Winforms app 2.0 to automatically update it's publish revision integer subsequent to issuing the publish command from within VS08.

Trying to use the following C# as a guide

 object[] attrs =
            System.Reflection.Assembly.GetEntryAssembly().GetCustomAttributes(true);

        foreach (object o in attrs)

            if (o.GetType() == typeof(System.Reflection.AssemblyFileVersionAttribute))

                label1.Text = ((System.Reflection.AssemblyFileVersionAttribute) o).Version;

© Stack Overflow or respective owner

Related posts about vb.net