473,796 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Version Info not showing up in assembly properties for C++ dll

I'm using VS2005 to build a C++ assembly. I set a Key File in the linker
advanced options for the project so that the assembly would be strong named.
I filled out the data in AssemblyInfo.cp p and built the project. But when I
use explorer to view properties on the assembly, there is not a version tab
as there is on my C# assemblies, so I cannot see the assembly version or file
version or other assembly attributes. The only tabs that show up are
General, Security, and Summary.

What am I missing in the project settings to get the version info to show up
as part of the assembly properties?

Aug 15 '07 #1
7 20158
>What am I missing in the project settings to get the version info to show up
as part of the assembly properties?
In C++ you still have to use an old-style Win32 .RES file with a
version resource to specify that information.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Aug 15 '07 #2
Is there a template somewhere for populating the standard assembly property
fields on the version tab, such as Assembly Version, File Version, Comments,
Company, Internal Name, Language, Product Name, Product Version, etc.?
"Mattias Sjögren" wrote:
>
What am I missing in the project settings to get the version info to show up
as part of the assembly properties?

In C++ you still have to use an old-style Win32 .RES file with a
version resource to specify that information.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Aug 15 '07 #3
What purpose does the AssemblyInfo.cp p file have? Is there any reason to
even fill out the data in AssemblyInfo.cp p?

Is there a way to map what is in AssemblyInfo to the .RES file?

Is there a way to auto-increment version numbers based on the build time,
like there is in C#?

"Mattias Sjögren" wrote:
>
What am I missing in the project settings to get the version info to show up
as part of the assembly properties?

In C++ you still have to use an old-style Win32 .RES file with a
version resource to specify that information.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Aug 15 '07 #4
Hi FamilyMan,

If you wanted to specify the information in Version tab in the final
generated assembly, you should righ click the "Resource Files" folder in
the "Solution Explorer"->Add->Resource...->Version to add a new Version
resource into the app.rc file. Then, you may modify the Version in the
app.rc to specify your customized version, company information.

AssemblyInfo.cp p attributes will not be used for this purpose. It will be
added into the final assembly as .Net manifest. You may open ildasm.exe
from the VS2005 command prompt and drag the final assembly into it. Then,
you may double click the MANIFEST to examine its conent. You will see all
the attributes you specified in the AssemblyInfo.cp p.

In C#, AssemblyInfo.cs attributes will be both added into the final
assembly manifest and be used as the Version tab in final assembly. I am
not sure why there is the difference here. I will talk with some other
C++/CLI experts to understand the difference.

I will get back to you ASAP. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 16 '07 #5
Thanks much! That's exactly what I needed to know.

""Jeffrey Tan[MSFT]"" wrote:
Hi FamilyMan,

If you wanted to specify the information in Version tab in the final
generated assembly, you should righ click the "Resource Files" folder in
the "Solution Explorer"->Add->Resource...->Version to add a new Version
resource into the app.rc file. Then, you may modify the Version in the
app.rc to specify your customized version, company information.

AssemblyInfo.cp p attributes will not be used for this purpose. It will be
added into the final assembly as .Net manifest. You may open ildasm.exe
from the VS2005 command prompt and drag the final assembly into it. Then,
you may double click the MANIFEST to examine its conent. You will see all
the attributes you specified in the AssemblyInfo.cp p.

In C#, AssemblyInfo.cs attributes will be both added into the final
assembly manifest and be used as the Version tab in final assembly. I am
not sure why there is the difference here. I will talk with some other
C++/CLI experts to understand the difference.

I will get back to you ASAP. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 17 '07 #6
Hi FamilyMan,

Glad to see my reply makes sense to you.

I have discussed this issue with some other experts.

Traditionally, C/C++ programs have used a resource to identify their
version information in the ¡°Version tab¡± as we added Version into the RC
file. Meanwhile, the AssemblyInfo.cp p is a relatively recent addition. In
addition, the two values serve ever so slightly different purposes from an
unmanaged and managed perspective. The Manifest version information is used
for assembly referencing; the version tab can be shared across modules as a
ship version information.

Standard C++ method for adding items to the file properties would be using
unmanaged resources; it is the C# compiler that does more work to add to
the file Version tabpage.

Hope this helps. Anyway, if you need further help, please feel free to tell
me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 17 '07 #7
Yes, that helps. Thanks much!

""Jeffrey Tan[MSFT]"" wrote:
Hi FamilyMan,

Glad to see my reply makes sense to you.

I have discussed this issue with some other experts.

Traditionally, C/C++ programs have used a resource to identify their
version information in the ¡°Version tab¡± as we added Version into the RC
file. Meanwhile, the AssemblyInfo.cp p is a relatively recent addition. In
addition, the two values serve ever so slightly different purposes from an
unmanaged and managed perspective. The Manifest version information is used
for assembly referencing; the version tab can be shared across modules as a
ship version information.

Standard C++ method for adding items to the file properties would be using
unmanaged resources; it is the C# compiler that does more work to add to
the file Version tabpage.

Hope this helps. Anyway, if you need further help, please feel free to tell
me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 19 '07 #8

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

Similar topics

8
2355
by: Malakie | last post by:
Hi all: Being that I am trying out VB.net for the first time finally, I am finding much has changed. But what should be one of the easiest things to do is somehow eluding me! Setting your project information such as copyright, trademark and version numbers is simple in VB6. Right click on the project and use the properties. But how do you do it in VS.Net 2003????? Right clicking and selecting properties gives me NO such options...
7
7819
by: Sky | last post by:
I have been looking for a more powerful version of GetType(string) that will find the Type no matter what, and will work even if only supplied "{TypeName}", not the full "{TypeName},{AssemblyName}" As far as I know yet -- hence this question -- there is no 'one solution fits all', but instead there are several parts that have to be put together to check. What I have so far is, and would like as much feedback as possible to ensure I've...
5
12099
by: Laurence | last post by:
In VS.2005 using VB.NET There are two versions on every project, The Assembly Version and the File Version. Why are there two different versions? As far as I can tell, there is not need for two versions. The assembly is the file, isn't it?
2
11138
by: virallinen | last post by:
Hi all Problem is, that My.Application.Info.Version shows only version 1.0.0.0 even if my application is version 1.0.0.0. Even when published My.Application.Deployment.CurrentVersion.ToString is still 1.0.0.0 (real 1.0.0.2 or more)
8
3503
by: schaf | last post by:
Hi Ng! My application (version 1 a1) communicates with a service (version 1 s1). Now I would like to update the service and create a service version 2 (s2). The new function calls within s2 are implemented in a new interface, which derive from the old one to ensure that an old version of my application (a1) still works with s2. If i run my new version of the application a2 with s1 I get a InvalidCastException (Return argument has an...
3
1911
by: Zim Babwe | last post by:
I have been making changes to my Windows Application and in the Project/Properties the Publish Version shows the following: Major: 1 Minor: 0 Build: 0 Revision: 45 I would like to show this information in the "About Screen" and I have: My.Application.Info.Version
4
4131
by: Miro | last post by:
Sorry for all the posts today. Just not been a good day. I cant seem to figure out version numbering. I click on the MyProject and set up the Major, Minor, MajorRevision, MinorRevision as 1,2,3,4 respectivly. But Debug.WriteLine(My.Application.Info.Version.Major.ToString)
2
2090
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I use: me.caption =Application.ProductVersion() (vb 2005) to present the version of the product. It always show 1.0.0.0 I googled some and found that I have to edit assemblyinfo.vb 1. When I add it to the project - I have compilation errors. 2. When I did that - it did not help... 3. Do I really have to edit it and not use the gui to change the revision ?
6
2597
by: John | last post by:
I have written a VB.NET DLL that is called by a third party program. If I make any changes in the DLL and then try to replace my DLL file the third party program will abort, saying that the DLL version number does not match to the DLL that it was linked against. How can I recompile my DLL without incrementing the version number? I don't see where this "version number" is stored in the project. The version number, under the "Assembly...
0
10223
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
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
9050
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
7546
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
6785
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();...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
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
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
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.