We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

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

Medium Priority
944 Views
Last Modified: 2012-06-27
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.
Comment
Watch Question

Independent Consultant
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Todd GerbertSenior Engineer
CERTIFIED EXPERT
Top Expert 2010

Commented:
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

Author

Commented:
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.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.