Link to home
Start Free TrialLog in
Avatar of homerslmpson
homerslmpsonFlag for United States of America

asked on

How to Manually Change Assembly Version Number of an Existing EXE Program?

I would like to know if there is a way for me to manually change the Assembly Version Number of an EXE program.  I want Visual Studio to automatically change the Assembly Version Number for me whenever I rebuild the EXE program.  But in some occasions, I need the EXE program to have a specific version number.  This means I want to be able to change the Assembly Version Number of the EXE file.  But the Assembly Version number field of the file properties is read-only.  Is there a way to change it?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Daniel Van Der Werken
Daniel Van Der Werken
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or right-click your project, choose properties, then click the "Assembly Information" button on the "Application" tab.  Specifying version numbers here is identical to doing it manually as Dan7el already suggested; if you use a "*" in one of the two right-most positions of the Assembly Version then Visual Studio will automatically increment it for you (if you use a "*" in the second-to-last position, then last one must be empty).
Untitled.png
Avatar of homerslmpson

ASKER

Thanks for the confirmation.

Actually I already know that I can assign a version number to a _new_ EXE file by changing the Assembly Version property in the AssemblyInfo.cs program file.  I was just hoping that I didn't need to mess with the AssemblyInfo.cs file and could go directly to change the version number in an _existing_ EXE file.  If this cannot be done, I will accept this and move on instead of procastinating.  Thanks.