On 2010/03/11 17:31, [email protected] wrote:
Hello, I'm trying to get the version number and copyright date
programatically from my AssemblyInfo.vb file for a web application
that I am developing using VS 2008. The line of code for that looks
like this:
lblCopyright.Text = Application.Get("Copyright")& " - Version : "&
Application.Get("Version")
However, both .Get() methods return "", which I do not understand,
since the appropriate data is in the file.
Version.Text = System.String.Format(Version {0}.{1:00}.{2:00}, _
My.Application.Info.Version.Major, My.Application.Info.Version.Minor, _
My.Application.Info.Version.Build)
From searching on other forums, I've seen that you can change the
build number by navigating to (project name)>>properties>>Application
Tab>>Assembly info button. This option is not available when I try to
find it. Is that an option no longer available in VS 2008 and/or web
applications? Is there a better alternative aside from hard coding
the info into the label's text property?
It's there :-)
--
Regards,
Mike Fry
Johannesburg