Solved

.exe version in VB6 and Visual Studio 2005

Posted on 2010-08-17
6
321 Views
Last Modified: 2013-11-27
HI,
have a few apps compiled in VB6 with .exe version format 0.00.0000, now when I create winforms app in VS2005 or 2008 .exe version format is 0.0.0.0 . How can I set version format like in VB6, is it posibble and how?

Thanks
0
Comment
Question by:kahvedzic
  • 3
  • 2
6 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 33453332
You can set this in your assemby-file

[assembly: AssemblyVersion("0.00.0000")]


Managing assembly version numbers using Visual Studio .NET and Visual SourceSafe
http://www.codeproject.com/KB/dotnet/ManagingAssemblyVersions.aspx
0
 
LVL 1

Author Comment

by:kahvedzic
ID: 33453502
I did this

[assembly: AssemblyVersion("1.01.0000")]

and again after I have builded .exe version it was 1.0.0.1 which is not OK with me.
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33454440
It seems that you can not format assembly version, but only file version and product version.

Add this line to AssemblyInfo.vb file:

<Assembly: AssemblyVersion("1.01.0000")>
<Assembly: AssemblyFileVersion("1.01.0000")>



0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 1

Author Comment

by:kahvedzic
ID: 33461731
I have both of those lines in my assemblyinfo.vb and I try just like this first time, but still have same issue.
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 33461888
The following table lists Visual Basic 6.0 version-number properties and their Visual Basic 2005 equivalents.

Visual Basic 6.0                 Visual Basic 2005  
No equivalent                    My.Application.AppInfo.Version.Build
 Major                                My.Application.AppInfo.Version.Major
 Minor                                My.Application.AppInfo.Version.Minor
 Revision                           My.Application.AppInfo.Version.Revision

Note  
In Visual Basic 6.0, Revision is the fourth part of the version number; in Visual Basic 2005, it is the third part

In .NET, the version number convention is:

(Major version).(Minor version).(Revision number).(Build number)
0
 
LVL 1

Author Closing Comment

by:kahvedzic
ID: 33464689
Thanks a lot this was really helpful.

Cheers
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now