Add version number to exe (created in VS 2008 - compact framework)

bmutch
bmutch used Ask the Experts™
on
I want to add version info to my mobile device exe file and apparently the following line is not supported in CF (windows mobile 6.0), ideas?:

<Assembly: AssemblyFileVersion("1.0.0.0")>

i.e., what I want to do is be able to to right-click on the exe and have the version displayed in a "version" tab just like a "normal" exe. I would then be able to read this version in code FROM A VB6 PROGRAM.

thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
this one is supported though, so you can read it I reckon

<Assembly: AssemblyVersion("1.3.1.0")>
Altin BardhiSoftware Engineer

Commented:
When you release your project you can change the version using the properties of your setup project.

Author

Commented:
Please let me know how/if these solutions will lead to something I can read in a VB6 program... seems I recall the AssemblyVersion was not readable from VB6.
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Author

Commented:
For "normal" exe files I can use the (FileSystemObject).GetFileVersion function to get the version. This is preferably what I would like to use.

Author

Commented:
Is there any indication that I can read the "assembly" version from vb6 somehow, please, I need a solution that will work IN VB6.
Altin BardhiSoftware Engineer

Commented:

Author

Commented:
I don't see where in the above article it references my issue, and again this article is about creating dotnet "COM" components to run on a PC.
Commented:
here is the solution fround from StackOverflow:

HOWTO: Add the Win32 file version to your .NET Compact Framework assemblies:

http://blog.opennetcf.com/ncowburn/Trackback,guid,e5babf15-ebb3-47b0-b072-957e6f3ccc85.aspx


Altin BardhiSoftware Engineer

Commented:
I was just giving you some clues, so you could somehow, get in the right direction. Some principles in programming are the same...

Best Regards

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial