473,385 Members | 2,028 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,385 software developers and data experts.

Assembley version from within another assembley

Nak
Hi there,

I have an application that uses plugins, what I would like to do is have
a property of the plugin called "Version" that will return the current
version of that assembly, the problem being that if I use
"Application.ProductVersion" it uses the application object of the assembley
that it is being used in. Is there a way to do this other than using

System.Diagnostics.FileVersionInfo.GetVersionInfo( assembleypath).ProductVers
ion

To do this? Thanks in advance.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
It seems you are not enabling Option Strict. Enable it in the project
properties and the compiler might find the error for you. Jobs a good'n!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #1
4 1703
there is a really long attribute class in the System.Reflection namespace

like assemblyattributeinfomrationattributevars or something...

you'll find it.. you can't miss it. =)

but it gets assembly versions... because god forbid it would be as simple as

Application.Version.Major (.Minor, .Build, .Revision)
"Nak" <a@a.com> wrote in message
news:O5******************@TK2MSFTNGP09.phx.gbl...
Hi there,

I have an application that uses plugins, what I would like to do is have a property of the plugin called "Version" that will return the current
version of that assembly, the problem being that if I use
"Application.ProductVersion" it uses the application object of the assembley that it is being used in. Is there a way to do this other than using

System.Diagnostics.FileVersionInfo.GetVersionInfo( assembleypath).ProductVers ion

To do this? Thanks in advance.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ It seems you are not enabling Option Strict. Enable it in the project
properties and the compiler might find the error for you. Jobs a good'n!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Nov 20 '05 #2
Nak
> there is a really long attribute class in the System.Reflection namespace
like assemblyattributeinfomrationattributevars or something...
you'll find it.. you can't miss it. =)
but it gets assembly versions... because god forbid it would be as simple as Application.Version.Major (.Minor, .Build, .Revision)


Cheers CJ,

I wish I understood the version numbering system too, I have an
application that is about 2 months old now and the application I started 2
days ago has a higher version number, even though It has only had less than
20 compiles, I dread to think how many my other app has. Oh well, cheers I
shall go and hunt in the object browser for it :-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
It seems you are not enabling Option Strict. Enable it in the project
properties and the compiler might find the error for you. Jobs a good'n!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #3
Hello,

"Nak" <a@a.com> schrieb:
I wish I understood the version numbering system too


Basic information on versioning

http://msdn.microsoft.com/library/en...managevers.asp
http://msdn.microsoft.com/library/en...l/tdlg_ch5.asp
http://msdn.microsoft.com/library/en...components.asp

Parts of the version number:

Main version
'Product' version
Sub version
Sub version, for example Service Pack
Build
During development, auto-increment
Revision
Hotfix or Quick Fix Engineering (QFE)

When using auto incrementation of numbers, the build number contains the
number of days since January, 2000; the revision contains the number of
seconds since midnight divided by 2.

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #4

I wish I understood the version numbering system too, I have an
application that is about 2 months old now and the application I started 2 days ago has a higher version number, even though It has only had less than 20 compiles, I dread to think how many my other app has. Oh well, cheers I shall go and hunt in the object browser for it :-) Nick.


Hey Nick,

Take a look at the following snip from:

http://msdn.microsoft.com/library/de...us/dnbda/html/
tdlg_ch4.asp

<quote>
... For C# projects, the assembly version is incremented every time it is
rebuilt. For Visual Basic .NET projects, the assembly version is
incremented the first time the project is rebuilt after it is loaded into
Visual Studio .NET. Subsequent rebuilds within the same instance of Visual
Studio .NET do not result in the assembly version being incremented.
</quote>

I believe that's why you see the differences in version numbers between you
apps...

HTH

Félix Lima
Visual Basic and Visual Basic .NET
This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only.
Nov 20 '05 #5

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

Similar topics

2
by: Stanley Sinclair | last post by:
I am working with others in developing a large program including database and user interface. I, for example, may be doing 70% front-end and 30% back-end, and a DBA may be doing 70% back-end and...
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...
0
by: Damien | last post by:
Hi, Visual Studio .NET 2003 Visual SourceSafe 6 (6.0d) I'm working in a three person team on a reasonably complex Solution - it currently consists of 9 separate projects (3 of them are plain...
8
by: Rak | last post by:
I am looking for a way to programatically change the .net version of the virtual directory that I am creating within a aspx page. As part of creating a new customer in my asp.net 2 application, it...
0
by: jwoolard | last post by:
Version 0.7 of Crunchy has been released. It is available on Sourceforge (http://sourceforge.net/project/showfiles.php?group_id=169458) Crunchy, the Interactive Python Tutorial Maker, is an...
0
by: tony2007 | last post by:
Hi everyone ;) It is my first post, and I am quite Newbie in C. Here is my prob: I am running Linux Ubuntu Dapper 6.06 and I am trying to run a script for printing and executing .asm code...
29
by: =?Utf-8?B?SGVybWF3aWg=?= | last post by:
Hello, Please anybody help me. I have only a little experience with web development. I created simple project using ASP NET 2.0 (VS 2005) It works fine on local computer. When I tried to run...
2
by: Birky | last post by:
Can someone point me in the right direction on how to use Version Numbers within Access? I have a database were its primary goal is to track the versions of several projects. Since the version...
20
by: Nates | last post by:
I have a .bas file saved locally that I load into my Acces project to run a particular sub. I use the following code to load the module (which works fine): I use the following loop to remove...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.