473,473 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP.Net 2.0 - assembly.info

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
Nov 23 '06 #1
1 1155
Hi,

Rob Meade wrote:
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
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Nov 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John | last post by:
Hello, I would like to create a global string variable in my assemblyinfo.cs file. This string will contain the value of my version info. Can anybody tell me how to create a global string value...
11
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
3
by: Jim | last post by:
Hi, I have an assembly and it's satellite in my GAC. I have referenced the DLLs in my project (from the same location where I added it to the GAC). CopyLocal is set false. When I run the...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
14
by: Nak | last post by:
Hi there, Does anyone know how I would get the value of the assembly GUID in code from within the same application? Thanks in advance. Nick. --...
5
by: Rich | last post by:
Hello, So I develop a vb.net exe on my (win2k) workstation. I have to deploy it to another workstation (actually several - all win2k). Each receiving workstation will have .Net Framework 1.1...
2
by: Eric Falsken | last post by:
Eric Falsken <eric@db4o.com> wrote on 04 Dec 2005: > craigkenisston@hotmail.com wrote on 19 Nov 2005: > >> I'm working in the migration of an asp.net application in 1.1 to 2.0. >> I'm new to...
5
by: RickN | last post by:
I want to creat a new application domain called 'mydomain' and then load an assembly named 'myassembly.dll' into the domain. The assembly is in the folder "C:\Mydata\assembly", which is not the...
5
by: Laurence | last post by:
In VS.2005 using VB.NET There are two versions on every project, The Assembly Version and the File Version. Why are there two different versions? As far as I can tell, there is not need for...
0
by: Michael Kremser | last post by:
Hi NG! I have troubles with loading an application to its own app domain. I have two applications: An caller application named "OfficeTSWCallerDemo" (in a directory like...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.