Christopher,

There is an easier/more reliable way of getting the version:

string version;
version = 
System.Reflection.GetExecutingAssembly().GetFullName().Version.ToString();

On 5/28/05, Christopher Frazier <[EMAIL PROTECTED]> wrote:
> Like this? http://www.chrisfrazier.net/blog/articles/573.aspx
> 
> On 5/27/05, Alex Smotritsky <[EMAIL PROTECTED]> wrote:
> > Thanks, I'm gonna try and translate this into C#.
> >
> > -----Original Message-----
> > From: Unmoderated discussion of advanced .NET topics.
> > [mailto:[EMAIL PROTECTED] On Behalf Of William
> > Bartholomew
> > Sent: Friday, May 27, 2005 4:08 AM
> > To: [email protected]
> > Subject: Re: [ADVANCED-DOTNET] AssemblyInfo.cs
> >
> > Try this:
> > http://www.vbdotnetheaven.com/Code/Sept2003/2172.asp
> >
> > On 5/27/05, Alex Smotritsky <[EMAIL PROTECTED]> wrote:
> > > How do I access the attributes in this file? I've started putting some
> > > values in for them:
> > >
> > >
> > >
> > > [assembly: AssemblyTitle("")]
> > >
> > > [assembly: AssemblyDescription("")]
> > >
> > > [assembly: AssemblyConfiguration("")]
> > >
> > > [assembly: AssemblyCompany("SQLFocus")]
> > >
> > > [assembly: AssemblyProduct("SQLFOCUS::Velocity")]
> > >
> > > [assembly: AssemblyCopyright("")]
> > >
> > > [assembly: AssemblyTrademark("")]
> > >
> > > [assembly: AssemblyCulture("")]
> > >
> > >
> > >
> > > I've looked at the System.Reflection.AssemblyProductAttribute class which
> > I
> > > assume maps to
> > >
> > > [assembly: AssemblyProduct("SQLFOCUS::Velocity")]
> > >
> > > but I haven't figured out yet how to get my value out of it.
> > >
> > >
> > >
> > > TIA
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ===================================
> > > This list is hosted by DevelopMentor(r)  http://www.develop.com
> > >
> > > View archives and manage your subscription(s) at
> > http://discuss.develop.com
> > >
> >
> >
> > --
> >
> > Regards,
> >
> > William D. Bartholomew
> > http://blog.bartholomew.id.au/
> >
> > ===================================
> > This list is hosted by DevelopMentorR  http://www.develop.com
> >
> > View archives and manage your subscription(s) at http://discuss.develop.com
> >
> > ===================================
> > This list is hosted by DevelopMentor(r)  http://www.develop.com
> >
> > View archives and manage your subscription(s) at http://discuss.develop.com
> >
> 
> 
> --
> -Christopher
> ASP.NET MVP | AspInsider
> http://www.chrisfrazier.net/blog
> 
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
> 
> View archives and manage your subscription(s) at http://discuss.develop.com
> 


-- 

Regards,

William D. Bartholomew
http://blog.bartholomew.id.au/

===================================
This list is hosted by DevelopMentor�  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to