473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

AssemblyProduct

How do I get the AssemblyProduct from the AssemblyInfo.cs?
Nov 16 '05 #1
1 6645
I have this code which works but it seems like a lot of effort to get some
text values. Is this the correct way?

Assembly thisAsm = this.GetType().Assembly;
object[] attrs =
thisAsm.GetCustomAttributes(typeof(AssemblyTitleAt tribute), false);
string test1 = ((AssemblyTitleAttribute)attrs[0]).Title;

object[] attrs1 =
thisAsm.GetCustomAttributes(typeof(AssemblyCompany Attribute), false);
string test2 = ((AssemblyCompanyAttribute)attrs1[0]).Company;

"jez123456" wrote:
How do I get the AssemblyProduct from the AssemblyInfo.cs?

Nov 16 '05 #2

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

Similar topics

1
by: C | last post by:
Hi, I have a project with a number of assembly's. (a) How do I version these assembly's? (b) Is there an option to get the compiler to set the version in the Assembly.info file? Thanks,
2
by: Phil Galey | last post by:
I created a VB.NET application, together with an associated installation project, and in the installation project I specified the ProductName. But when I run the application, if I try to retrieve...
8
by: Paul van't Klooster | last post by:
Hi, I have a situation where I need to register a COM/COM+ object that I have written in C# as DCOM. I have no problems creating COM or COM+ classes using C#, but I have not been successful...
0
by: James Pyrich | last post by:
Greetings! I have a question regarding Assembly information. My program acts as an Internet server. With Windows XP SP2 and the Windows Firewall, the application has to be registered with...
6
by: Frank T. Clark | last post by:
I am having trouble trying to retrieve the version resources of the executing assembly at runtime. I want to retrieve AssemblyTitle, AssemblyDescription, AssemblyCompany, AssemblyProduct, and...
5
by: David Schwartz | last post by:
How do you programmatically set the name (AssemblyName?) for a Windows forms application? Thanks!
3
by: Gustaf | last post by:
I wonder if there's any offical document on how to fill in these values in the AssemblyInfo.cs file?
0
by: ben | last post by:
I've been drilling through the documentation trying to figure out what these are supposed to be used for, but I could not find any definitive reference which explained what each attribute should be...
1
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hello, friends, In our c#.net 2005 project, I clicked on project property. At application tab of property page, clicked on Assembly Information... button, All boxes were left blank, including...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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
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
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...
0
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
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...

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.