Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add version information to the compiled EXE file in Visual Studio?

I have a C++ console application, and I would like to add a version number to the EXE file. Even better would be if this version would auto increment with every build. Is this somehow possible in Visual Studio 2013?

like image 990
kampi Avatar asked Dec 03 '13 21:12

kampi


People also ask

How can I view the source code of an EXE file in Visual Studio?

Just go to File->Open->Project/Solution and browse to the .exe file. Like you would if it was a . sln file. Visual Studio will then open that EXE as a project.


1 Answers

The first part is simple. Right-click the Resource Files folder in your solution, Add, Resource, Version. Just edit the fields as you want them. The editor is not available in the Express edition afaik.

Second part, no, auto-incrementing versions is not simple. There is build automation tooling for that, the kind you use on a build server. You wouldn't have asked this question if you use one.

like image 83
Hans Passant Avatar answered Sep 25 '22 08:09

Hans Passant