R
Rob Meade
Hi all,
Having used to be able to specify the version numbers for my applications I
am a bit of a loss with regards to what to do now...from what I've read
(skimmed through to be honest) on the net it would seem that assembly.info
is no more and that .net handles all of the version itself....
Is there anyway to override these settings? If so - anyone got an example?
The reason I ask is that we specifically set version numbers for our
applications, these numbers tallied up with requirement/technical
specifications, in addition, I had a web control which retrieve this data
from the assembly and slapped it on the page (in the copyright footer at the
bottom of each page) - the same control is running but now I get some
gobble-de-gook...
Code from the WebControl:
Private Sub DisplayApplicationNameAndVersion()
' declare variables
Dim ApplicationVersion As Version
Dim ApplicationName As String
' populate variables
ApplicationVersion = [Assembly].GetExecutingAssembly.GetName.Version
ApplicationName =
[Assembly].GetExecutingAssembly.GetName.Name.ToString
' display application name and version
lblApplicationNameAndVersion.Text = ApplicationName & " v" &
ApplicationVersion.ToString(2)
End Sub
What I get now:
App_Web_owic-a5s v0.0
So, as you can see, the name isn't actually the name of my current project,
and the version number is 0!
Any help with this would be really appreciate - I'd like to modify my code
if possible to either pick up on the values .net is now setting, or, better
still, go back to being able to set them easily myself...ironically it seems
that if I write a Windows app I can still specify these!
Thanks for any help
Regards
Rob
Having used to be able to specify the version numbers for my applications I
am a bit of a loss with regards to what to do now...from what I've read
(skimmed through to be honest) on the net it would seem that assembly.info
is no more and that .net handles all of the version itself....
Is there anyway to override these settings? If so - anyone got an example?
The reason I ask is that we specifically set version numbers for our
applications, these numbers tallied up with requirement/technical
specifications, in addition, I had a web control which retrieve this data
from the assembly and slapped it on the page (in the copyright footer at the
bottom of each page) - the same control is running but now I get some
gobble-de-gook...
Code from the WebControl:
Private Sub DisplayApplicationNameAndVersion()
' declare variables
Dim ApplicationVersion As Version
Dim ApplicationName As String
' populate variables
ApplicationVersion = [Assembly].GetExecutingAssembly.GetName.Version
ApplicationName =
[Assembly].GetExecutingAssembly.GetName.Name.ToString
' display application name and version
lblApplicationNameAndVersion.Text = ApplicationName & " v" &
ApplicationVersion.ToString(2)
End Sub
What I get now:
App_Web_owic-a5s v0.0
So, as you can see, the name isn't actually the name of my current project,
and the version number is 0!
Any help with this would be really appreciate - I'd like to modify my code
if possible to either pick up on the values .net is now setting, or, better
still, go back to being able to set them easily myself...ironically it seems
that if I write a Windows app I can still specify these!
Thanks for any help
Regards
Rob