Hi Robert,
Welcome to ASPNET newsgroup.
Regarding on the ASP.NET 2.0 project assembly versioning question, here are
some of my understanding:
Yes, the ASP.NET 2.0 project no longer use the precompiled assemblies which
can be build (and specify version info through assemblyInfo.cs) in VS.NET
2003 IDE. The ASP.NET 2.0 web application (project) utilize new dynamic
compilation model, so the project's assembly will be compiled into a
dynamically generated assembly and namespace (just like the dynamic
compiled one under the Temporary ASPNET folder...), so we won't be able to
specify the info, and that's not quite useful as the one in 1.1.
BTW, the asp.net web tools team currently going to provide a new Web
Deployment project which can provide some customzation features for
precompiled website and deploy website, and one of the feature is assigning
version number and controling how the page or App_Code assemblies are
dynamically compiled, here is the beta preview link for this project:
http://msdn.microsoft.com/asp.net/re...p/default.aspx
Also, here is blog article discussing on the background of this project
(from the ASP.NET web tools &platfform team's mgr...)
http://weblogs.asp.net/scottgu/archi...06/429723.aspx
Hope helps. Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: How to get version of application
| thread-index: AcXpfCMkjuavsUoBRTm3XfFgorOPaw==
| X-WBNR-Posting-Host: 67.180.214.235
| From: =?Utf-8?B?Um9iZXJ0?= <ro*****@noemail.nospam>
| Subject: How to get version of application
| Date: Mon, 14 Nov 2005 16:33:02 -0800
| Lines: 19
| Message-ID: <94**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:358119
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I have an application migrated from 1.1 to 2.0 via VS2005.
|
| Under 1.1 I could do the following to return the version information (as
| found in the assemblyinfo.vb file)
|
| GetVersion =
|
System.Diagnostics.FileVersionInfo.GetVersionInfo( System.Reflection.Assembly
..GetExecutingAssembly.Location).FileMajorPart.ToS tring
| + "." +
|
System.Diagnostics.FileVersionInfo.GetVersionInfo( System.Reflection.Assembly
..GetExecutingAssembly.Location).FileMinorPart.ToS tring
| + "." +
|
System.Diagnostics.FileVersionInfo.GetVersionInfo( System.Reflection.Assembly
..GetExecutingAssembly.Location).FileBuildPart.ToS tring
|
|
| However, under 2.0, first it appears that the assemblyinfo.vb file is
| obsolete and there is no way to set or read a version associated with the
| project.
|
| Is there a way to still track a version of the application and then
output
| it on a web page?
|