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?