473,473 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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.
Dec 13 '05 #1
2 1647
"Eddie" <ed******@gmail.com> wrote
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
Dec 13 '05 #2
Thanks again, HG.

Holger Grund wrote:
"Eddie" <ed******@gmail.com> wrote

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

Dec 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Scheer | last post by:
Hi. I tried to compile a windows forms app without the assemblyinfo.vb file, and it compiled ok. So, if I delete the assemblyinfo.vb file from my project what kinds of problems would I have? ...
0
by: Van Tumour | last post by:
I have a basic Windows Form Application (.NET) using VS2003 and C++. I modify AssemblyInfo.cpp so the appropriate line now reads: ; In my application I use the following code: ...
3
by: Sushil Srivastava | last post by:
Hi Guys, Would you be able to help me using C# GUI (with user interface component) in my MFC application. I have used managed extension, COM-interops, etc but problem is this C# component has...
2
by: Rob | last post by:
What VB run-time methods are available to retrieve information (such as AssemblyCopyright, AssemblyProduct, AssemblyVersion, etc.) from the AssemblyInfo.vb file for the current executable? ...
8
by: William Meitzen | last post by:
Does someone know how I can get two projects to share a common class? Something like this: solution WholeShmeer project1 code1 CommonClass project2 code2 CommonClass
6
by: Charles Law | last post by:
Suppose my application is running on a client machine, and they report an intermittent problem. It only occurs after the program has been running for a while, and then occasionally fails to perform...
5
by: Tom | last post by:
Application.ProductName returns the root namespace. How do I get the assembly name as displayed on the project properties dialog? Tom
2
by: James Wong | last post by:
Hi everybody, I would like to know how to retrieve information from AssemblyInfo.vb inside web service. I've tried many different ways including GetExecutingAssembly or similar method but all...
1
by: ziycon | last post by:
I'm getting this error when i try to attach a DB:
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.