473,505 Members | 15,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Missing version info in multifile assembly

In my solution, I have several C# and C++ projects. Since I need them to
produce multifile assembly, I use C# and C++ command line compiler. To avoid
compile error caused by redundant code in AssemblyInfo.cs in each of the
projects, I then created GlobalAssemblyInfo.cs at the solution level, which
contains copyright, version number, etc, and have it shared among the
projects. I manage to build the solution and get several netmodules and one
DLL.

Now my question is why the DLL's properties window in windows explorer does
not display the version tab, while roeder's .net reflector shows that the
version related information are embedded correctly in the assembly.

What am I doing wrong?

Thanks in advance
-- Henry
Jun 27 '08 #1
2 1422
Hi Henry,

I assume you are using link.exe to combine and generate the final .Net
assembly. I suspect this issue is the same as I originally replied below:
http://groups.google.com/group/micro.../msg/d5cf65083
4f8c947

For C++ compiler and linker, AssemblyInfo.cpp
attributes(AssemblyVersionAttribute etc...) will be added into the final
assembly as .Net manifest. However, it will not be used to display the
version tabpage in PE property window. While C# compiler/linker will use
AssemblyVersionAttribute to generate the version tabpage in PE property
window.

To resolve this issue, you may add the win32 resource *.rc file which
contains the Version resource to the C++ compiler/linker, I assume this
will be shown in the final DLL property window. See my reply in the URL
above for more details.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

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

Jun 27 '08 #2
Hi Jeffrey,

Thanks for the explanation. I tried your suggestion and the version tab now
appears in the properties windows.

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

I assume you are using link.exe to combine and generate the final .Net
assembly. I suspect this issue is the same as I originally replied below:
http://groups.google.com/group/micro.../msg/d5cf65083
4f8c947

For C++ compiler and linker, AssemblyInfo.cpp
attributes(AssemblyVersionAttribute etc...) will be added into the final
assembly as .Net manifest. However, it will not be used to display the
version tabpage in PE property window. While C# compiler/linker will use
AssemblyVersionAttribute to generate the version tabpage in PE property
window.

To resolve this issue, you may add the win32 resource *.rc file which
contains the Version resource to the C++ compiler/linker, I assume this
will be shown in the final DLL property window. See my reply in the URL
above for more details.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

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

Jun 27 '08 #3

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

Similar topics

0
1576
by: Sven Erik Matzen | last post by:
Hi there, I'm searching for a "convinient" way to compile my source into a multifile assembly (multiple files for one assembly). I need this to optimize performance while loading the assembly...
11
3404
by: Z D | last post by:
Hello, If I have a .NET assembly, how do I determine what version of the .NET framework it.... 1) was compiled against 2) is supposed to use 3) is compatible with? Is there a utility that...
12
2761
by: Pollux | last post by:
I'm having trouble doing someting apparently simple. I'm still not very familiar with Visual Studio 2003, so apologies if I've missed something obvious. Basically my problem is the following. I...
1
1643
by: José Joye | last post by:
I have created a VC project (which will create a DLL). It is using managed extension. It also has a ConfigData.cpp. In that file I have the following: ; However, it does not write any version...
5
12082
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...
4
4120
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 ...
2
2076
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....
1
1160
by: =?Utf-8?B?aWduaGVucnk=?= | last post by:
In my solution, I have several C# and C++ projects. Since I need them to produce multifile assembly, I use C# and C++ command line compiler. To avoid compile error caused by redundant code in...
6
4868
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
4
3278
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
0
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
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...
0
7367
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
7018
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
5613
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
5028
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
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
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
407
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...

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.