Solved

.exe version in VB6 and Visual Studio 2005

Posted on 2010-08-17
6
334 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

627 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