Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Show AssemblyInformationalVersion in crash reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrunwald committed Aug 30, 2010
1 parent 7f67d54 commit b45a7d5
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -101,8 +101,11 @@ class ClownFishException : Exception { }
public static string GetVersionInformationString()
{
string str = "";
Version v = typeof(AboutSharpDevelopTabPage).Assembly.GetName().Version;
str += "SharpDevelop Version : " + v.ToString() + Environment.NewLine;
object[] attr = typeof(AboutSharpDevelopTabPage).Assembly.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false);
if (attr.Length == 1) {
AssemblyInformationalVersionAttribute aiva = (AssemblyInformationalVersionAttribute)attr[0];
str += "SharpDevelop Version : " + aiva.InformationalVersion + Environment.NewLine;
}
str += ".NET Version : " + Environment.Version.ToString() + Environment.NewLine;
str += "OS Version : " + Environment.OSVersion.ToString() + Environment.NewLine;
string cultureName = null;
Expand Down

0 comments on commit b45a7d5

Please sign in to comment.