views:

37

answers:

1

As part of the solution to another question I asked I have added a resource file to my project. I was able to set the icon for the application in the resource file but I'm not sure how the other attributes (ie: File Version, Description, Copyright, etc.) should be set. I imagine I need to put them in the resource file but I'm not clear on the details. Any advice?

Here's an example of a normal .NET application:

alt text

And my application using a Win32 resource file:

alt text

+4  A: 

The file version, description, etc, are stored in a VERSIONINFO resource.

See the Version Information topic at MSDN for more info.

Edit: yes, those are the fields that are stored in the VERSIONINFO resource.

John Knoeller
Lol it's right there when I add a resource too. Any advice on automatically generating this from my AssemblyInfo.cs file like normally happens when you aren't including a Win32 resource?
Cory Charlton
@Cory: sorry no, I don't know if the magic mechanism call be called explicitly. I can some example code of how to fill out a VERSIONINFO resource if you need it.
John Knoeller