Version resource for C#

  • Thread starter Thread starter Vance Gloster
  • Start date Start date
V

Vance Gloster

Hi,

Is there a way to add a traditional C++ style version resource to a C#
Windows forms-based application? The version resource is what gets
displayed on the Version tab when you bring up the property sheet for the
..exe or .dll file in Windows Explorer.

In the documentation I see a version resource editor for C++, but it looks
like resources for C# and managed C++ are done differently. I do not need
to read this resource from inside the code, it is just that this is our
first .NET-based product and we have an internal standard that all released
products need to have correct version information in all modules. This is
so tech support can have the customer bring up property sheets in Explorer
to figure out exactly which versions of everything the customer is running.
Thanks for your help.

-Vance Gloster
 
Vance,
Is there a way to add a traditional C++ style version resource to a C#
Windows forms-based application?

The C# compiler does that automatically. It builds it based on
information you provide with assembly attributes (typically in
AssemblyInfo.cs).



Mattias
 
* "Vance Gloster said:
Is there a way to add a traditional C++ style version resource to a C#
Windows forms-based application? The version resource is what gets
displayed on the Version tab when you bring up the property sheet for the
.exe or .dll file in Windows Explorer.

..NET binaries include Win32 version resources which are generated
automatically from the project settings and the values provided in the
"AssemblyInfo.*" file (which is part of your project). You can open the
binary with VS.NET and you will see that the resources are included in
the binary. You don't need to explicitly specify these resources.
 
Back
Top