?
Solved

Read AssemblyInfo.cs

Posted on 2005-05-15
2
Medium Priority
?
1,015 Views
Last Modified: 2012-03-15
Hello,

I woul like to know how to read the values set in the AssemblyInfo.cs and then display them. The code is in w windows application?

Thanks Kieran
0
Comment
Question by:kplonk
2 Comments
 

Accepted Solution

by:
goxcell earned 200 total points
ID: 14008781
In System.Reflection namespace are assembly attribute classes.
Here is a sample for one of those. You can try the same with the other attributes you want to read.

Assembly executingAssembly=Assembly.GetExecutingAssembly();
                   AssemblyCopyrightAttribute copyright=AssemblyCopyrightAttribute.GetCustomAttribute(executingAssembly,typeof(AssemblyCopyrightAttribute)) as AssemblyCopyrightAttribute;
                   System.Console.WriteLine(copyright.Copyright);
Regards
0
 

Author Comment

by:kplonk
ID: 14015057
Nice thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Loops Section Overview
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question