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

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.
 
H

Holger Grund

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
 
E

Eddie

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top