G
Guest
I have an application migrated from 1.1 to 2.0 via VS2005.
Under 1.1 I could do the following to return the version information (as
found in the assemblyinfo.vb file)
GetVersion =
System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileMajorPart.ToString
+ "." +
System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileMinorPart.ToString
+ "." +
System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileBuildPart.ToString
However, under 2.0, first it appears that the assemblyinfo.vb file is
obsolete and there is no way to set or read a version associated with the
project.
Is there a way to still track a version of the application and then output
it on a web page?
Under 1.1 I could do the following to return the version information (as
found in the assemblyinfo.vb file)
GetVersion =
System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileMajorPart.ToString
+ "." +
System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileMinorPart.ToString
+ "." +
System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileBuildPart.ToString
However, under 2.0, first it appears that the assemblyinfo.vb file is
obsolete and there is no way to set or read a version associated with the
project.
Is there a way to still track a version of the application and then output
it on a web page?