Skip to content

Commit

Permalink
Use correct assembly to retrieve ProdInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaier committed Aug 23, 2013
1 parent e40f403 commit 9f620b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/ProductInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static string Company
{
get
{
var attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
var attributes = Assembly.GetEntryAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
if (attributes.Length == 0) {
return string.Empty;
}
Expand All @@ -20,7 +20,7 @@ public static string Copyright
{
get
{
var attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
var attributes = Assembly.GetEntryAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
if (attributes.Length == 0) {
return string.Empty;
}
Expand All @@ -42,7 +42,7 @@ public static string Title
{
get
{
var attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
var attributes = Assembly.GetEntryAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
if (attributes.Length > 0) {
var titleAttribute = (AssemblyTitleAttribute)attributes[0];
if (!string.IsNullOrWhiteSpace(titleAttribute.Title)) {
Expand Down

0 comments on commit 9f620b1

Please sign in to comment.