PC Review


Reply
Thread Tools Rate Thread

ASP.Net 2.0 - assembly info?

 
 
Rob Meade
Guest
Posts: n/a
 
      27th Dec 2006
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


 
Reply With Quote
 
 
 
 
Karl Seguin
Guest
Posts: n/a
 
      28th Dec 2006
Take a look at:

--
http://www.openmymind.net/
http://www.codebetter.com/


"Rob Meade" <(E-Mail Removed)> wrote in message
news:OKMiG%(E-Mail Removed)...
> 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
>


 
Reply With Quote
 
Karl Seguin
Guest
Posts: n/a
 
      28th Dec 2006
arrg...sorry..

Take a look at:
http://odetocode.com/Blogs/scott/arc...1/24/2786.aspx

If that doesn't do it for you, I suggest you look at using the Web
Application Project: http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx
(free)

which makes VS.NET 2005 web projects work like 2003 projects...I use it
almost exclusively...

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/


"Karl Seguin" <(E-Mail Removed)> wrote in
message news:%(E-Mail Removed)...
> Take a look at:
>
> --
> http://www.openmymind.net/
> http://www.codebetter.com/
>
>
> "Rob Meade" <(E-Mail Removed)> wrote in message
> news:OKMiG%(E-Mail Removed)...
>> 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
>>

>


 
Reply With Quote
 
Rob Meade
Guest
Posts: n/a
 
      28th Dec 2006
"Karl Seguin" wrote ...

> arrg...sorry..
>
> Take a look at:
> http://odetocode.com/Blogs/scott/arc...1/24/2786.aspx
>
> If that doesn't do it for you, I suggest you look at using the Web
> Application Project:
> http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx (free)
>
> which makes VS.NET 2005 web projects work like 2003 projects...I use it
> almost exclusively...


Hi Karl,

Many thanks for the replies - I'll take a read through that first link in a
sec - with regards to using the Web Application Project to kinda map back to
VS2003 - are there any downsides of that? ie, are there then parts of VS2005
that you cant use/dont work? Please excuse my ignorance, ie, if this seems
like a daft question - I'm just not familiar with it.

Regards

Rob


 
Reply With Quote
 
Karl Seguin
Guest
Posts: n/a
 
      28th Dec 2006
Yes/No.

From a 2003 point of view, it's almost identical.

If you are looking at it frmo the way things are in 2005, you'll lose a
bit -namely in how you can deploy your code. The 2005 model is a lot more
flexible than the 2003 one - allowing to deploy everything (codebehing
included) and have it JIT or deploy everything (.aspx included) compiled...

Karl
--
http://www.openmymind.net/
http://www.codebetter.com/


"Rob Meade" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "Karl Seguin" wrote ...
>
>> arrg...sorry..
>>
>> Take a look at:
>> http://odetocode.com/Blogs/scott/arc...1/24/2786.aspx
>>
>> If that doesn't do it for you, I suggest you look at using the Web
>> Application Project:
>> http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx (free)
>>
>> which makes VS.NET 2005 web projects work like 2003 projects...I use it
>> almost exclusively...

>
> Hi Karl,
>
> Many thanks for the replies - I'll take a read through that first link in
> a sec - with regards to using the Web Application Project to kinda map
> back to VS2003 - are there any downsides of that? ie, are there then parts
> of VS2005 that you cant use/dont work? Please excuse my ignorance, ie, if
> this seems like a daft question - I'm just not familiar with it.
>
> Regards
>
> Rob
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get assembly info. Thank You. shapper Microsoft C# .NET 2 26th Nov 2007 07:28 AM
need example of how to get assembly info Jon Paal Microsoft ASP .NET 3 27th Mar 2006 01:30 PM
vbc.exe and assembly info Chris Microsoft Dot NET Framework 3 20th Nov 2005 11:24 AM
vbc.exe and assembly info Chris Microsoft ASP .NET 0 19th Nov 2005 04:48 PM
How to get assembly info P.Sunil Microsoft Dot NET Framework 1 20th Oct 2003 12:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:21 AM.