tags:

views:

46

answers:

0

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;