private void ExtractEntryAssemblyInfo(Type optionsType)
{
entry = optionsType.Assembly;
if (entry == GetType().Assembly)
{
entry = Assembly.GetEntryAssembly();
}
appExeName = entry.GetName().Name;
appVersion = entry.GetName().Version.ToString();
GetAssemblyAttributeValue(typeof(AssemblyTitleAttribute), "Title", ref appTitle);
GetAssemblyAttributeValue(typeof(AssemblyCopyrightAttribute), "Copyright", ref appCopyright);
GetAssemblyAttributeValue(typeof(AssemblyDescriptionAttribute), "Description", ref appDescription);
GetAssemblyAttributeValue(typeof(AboutAttribute), ref appAboutDetails);
GetAssemblyAttributeValue(typeof(UsageComplementAttribute), ref appUsageComplement);
GetAssemblyAttributeValue(typeof(AdditionalInfoAttribute), ref appAdditionalInfo);
GetAssemblyAttributeValue(typeof(ReportBugsToAttribute), ref appReportBugsTo);
appAuthors = GetAssemblyAttributeStrings(typeof(AuthorAttribute));
if (appAuthors.Length == 0)
{
appAuthors = new String[1];
appAuthors[0] = "Add one or more [assembly: Mono.Author(\"Here goes the author name\")] to your assembly";
}
}