Why can't I attach information in AssemblyInfo.cpp to the executablefile?

  • Thread starter Thread starter Eddie
  • Start date Start date
E

Eddie

Hello, there.

When I create new 'VC++ -> CLR -> Windows Form Application' project,
there created AssemblyInfo.cpp file.

There exists strings like

[assembly:AssemblyVersion("1.0.1.1")];

I believe this information should be appeared in the file property
dialog after the build.
But my applicaion doesn't have version tab in the file dialog.
Is it normal? Is there anything that I missed?

As a consequence(I believe), I can't read attribute like
this->ProductVersion.
You, professional programmers, should have help a newbie out of
mysterious situation.

Thanks.
 
Eddie said:
There exists strings like

[assembly:AssemblyVersion("1.0.1.1")];

I believe this information should be appeared in the file property
dialog after the build.
What you see in the shell file property sheet or in explorer
is the standard version resource (see VERSIONINFO in the
MSDN index)

This is a different system from the one, in managed assemblies
which have version information encoded in metadata.

You can mix both. To do so, add a native resource. It's
probably easiest to do so by changing to resource view
and select "Add Resource" and add a version resource)
This will automatically add a ".rc" file to your project.

The resource compiler translates that to a binary file
(.res) which is then linked in to the final image.

-hg
 
Thanks again, HG.

Holger said:
There exists strings like

[assembly:AssemblyVersion("1.0.1.1")];

I believe this information should be appeared in the file property
dialog after the build.

What you see in the shell file property sheet or in explorer
is the standard version resource (see VERSIONINFO in the
MSDN index)

This is a different system from the one, in managed assemblies
which have version information encoded in metadata.

You can mix both. To do so, add a native resource. It's
probably easiest to do so by changing to resource view
and select "Add Resource" and add a version resource)
This will automatically add a ".rc" file to your project.

The resource compiler translates that to a binary file
(.res) which is then linked in to the final image.

-hg
 
Back
Top