473,725 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Hello, there.

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

There exists strings like

[assembly:Assemb lyVersion("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 1662
"Eddie" <ed******@gmail .com> wrote
There exists strings like

[assembly:Assemb lyVersion("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:Assemb lyVersion("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
1958
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? Thanks, Robert Scheer
0
338
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: label1->Text = Application::CompanyName;
3
9833
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 user interface. how should have get window handle from managed windows? Thanks in advance. Sushil
2
1986
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? Thank you in advance for any help.
8
1984
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
1901
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 correctly. I would like to be able to come along with a program I have written (or a third-party program), load it onto the client machine - without stopping the problem application - and attach to the application to receive trace information...
5
30144
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
2119
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 are failed. My main purpose is the version number stored in AssemblyInfo.vb. Thanks for your attention and kindly advice! Regards,
1
5602
by: ziycon | last post by:
I'm getting this error when i try to attach a DB:
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9113
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8097
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3221
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 we have to send another system
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.