ASP.Net 2.0 - assembly.info

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
 
L

Laurent Bugnion

Hi,

Rob said:
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....

The new website model of ASP.NET is pretty messy if you ask me. If you
want to be in control of your application like before, try the Web
Application Project add-on, which gives you all you had before, and more.

http://webproject.scottgu.com/

HTH,
Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top