Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010: Setting Up File Details on Application Build

After I right-click on a file in Windows (ex: Windows 7 64bit), a pop-up menu appears with "Properties" on its bottom.

Going to: Mouse-Right-Click on a File -> Properties -> Details I get a tab with file description containing:

  • File Description
  • Type
  • File Version
  • Product Version
  • Copyright
  • Size
  • Date modified
  • Language

Is it possible to setup any of the above parameters (Example: File Version, Product Version, Copyright) from within Visual Studio 2010? I want to have the parameters available after each compile/build session.

If yes, how to do that? If not, what is the appropriate way of setting them up? I did not find anything relevant on internet yet.

like image 916
Bunkai.Satori Avatar asked Nov 01 '10 15:11

Bunkai.Satori


2 Answers

In Visual C++ project add a resource file with version information. See MSDN help: http://msdn.microsoft.com/en-us/library/aa381058(v=VS.85).aspx

like image 185
Gene Bushuyev Avatar answered Nov 15 '22 16:11

Gene Bushuyev


I am currently using VS2015, to our project contained additional information, follow these steps:

  1. In Solution Explorer select project and then: mouse-right-click on a Project -> Add -> New Item.
  2. Then on the left side in the new window, select: Installed -> Visual C ++ -> Resource.
  3. Choose Resource File (rc). Enter the name for example Version.
  4. When you see the Resource View on the previously entered name file, right click mouse and from the context menu select Add resource.
  5. With resource type select Version and then click in the New button.

Fill the data and rebuild the project. Done.

like image 27
elcudro Avatar answered Nov 15 '22 16:11

elcudro