473,383 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

ASP.NET 2.0 and Version Number

Hello all,
First thank you for taking the time to read this. Second, this
question may have a simple answer and i'm missing something..... But
anyway, here is the question.

I've worked with ASP.NET 1.1 for a while now, and we generally set
the version number. In .net 1.1, this is generally done in the
AssemblyInfo.cs (for C#) file. I've started a project (brand new, no
migration) in ASP.NET 2.0 and can't find any where where I could set
this property.

Presently, all the assemblies are coming out as version 0.0.0.0. I
would just like all the resulting asseblies to come out as 1.0.* (if we
can still do the * thing).

I've searched online through google, i've searched the MSDN
documentation, but all the documentation is taking me into more complex
topics....

Thank You,
Frank V.
ja*****@gmail.com

Nov 21 '05 #1
2 2123
On 21 Nov 2005 08:25:21 -0800, "Frank Villasenor" <ja*****@gmail.com>
wrote:
I've worked with ASP.NET 1.1 for a while now, and we generally set
the version number. In .net 1.1, this is generally done in the
AssemblyInfo.cs (for C#) file. I've started a project (brand new, no
migration) in ASP.NET 2.0 and can't find any where where I could set
this property.


You could put the AssemblyVersion attribute in a .cs file in App_Code,
and this will give the App_Code assembly a version. All of the other
pages in a web app can generate thier own assemblies, wich makes it
too difficult to add the attribute everywhere.

but ..

If you use the "Web Deployment Project" tool to merge all the
assemblies into a single file, any [assembly: ] attributes are applied
to the final assembly from the App_Code assembly. You can also specify
a version in the web deployment proprty pages.

There is more detail in the tool's whitepaper here:

http://msdn.microsoft.com/asp.net/re...p/default.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 21 '05 #2
> You could put the AssemblyVersion attribute in a .cs file in
App_Code,
and this will give the App_Code assembly a version. All of the other
pages in a web app can generate thier own assemblies, wich makes it
too difficult to add the attribute everywhere.

but ..

If you use the "Web Deployment Project" tool to merge all the
assemblies into a single file, any [assembly: ] attributes are applied
to the final assembly from the App_Code assembly. You can also specify
a version in the web deployment proprty pages.

There is more detail in the tool's whitepaper here:

http://msdn.microsoft.com/asp.net/re...p/default.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/


Scott,
Thank you.

Nov 21 '05 #3

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

Similar topics

5
by: mekim | last post by:
Hello....I am trying to System.Reflection.Assembly.GetExecutingAssembly ().GetName ().Version.ToString () ; to display the version of the app...but it remains static and therefore does not...
4
by: John | last post by:
Hi Is there a way to get the version number of my vb.net app, that is provided by vs? Thanks Regards
8
by: John | last post by:
Hi How can I change the product version number that is returned by Application.ProductVersion? Thanks Regards
12
by: joanne | last post by:
how to tell application version after i installed it at client side? i did make the version and product code while doing the packaging and deployment. Thanks a lot.
4
by: Dave Cullen | last post by:
Where in a VB.NET project do you get to set the version properties of your executable? Version number, Copyright, biuld comments, etc (the stuff that shows up when you right-click...
3
by: Jeff | last post by:
I've been looking and looking for how to set the version numbers for my visual studio project...where the heck is it? Used to be able to do it from project properties in VB6. I found out how to...
0
by: ev951 | last post by:
I am not that familiar with XML or XSL and I am trying to sort application version number strings in an XML file that my team uses for application installations on our Linux servers. I have tried...
6
by: Gavin Sullivan | last post by:
I've been using the date (in YMMDD) format for the build number in the AssemblyVersion attribute. However, it appears that numbers 65534 are invalid!! Bit of a bummer for 2007!!! Is there a...
1
by: ewingate | last post by:
I cannot seem to get the version number of my VB app to increment properly in VS2005. When I build the app each day the "build" number increments with no problem as does the version number but if I...
14
by: Phil | last post by:
I have been using this code to display the version number, and this has worked well, but I am now changing from using the ClickOnce publishing to a proper setup project, and this no longer works. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.