plkumar / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

Log the AssemblyVersion and/or the AssemblyFileVersion of the TargetSite #255

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What new or enhanced feature are you proposing?

Is it possible to log the following info?

[assembly: AssemblyVersion("1.0.1.1")]
[assembly: AssemblyFileVersion("1.0.2.34")]

via baseException.TargetSite.DeclaringType.Assembly

_assemblyFileVersion = 
FileVersionInfo.GetVersionInfo(baseException.TargetSite.DeclaringType.Assembly.L
ocation).FileVersion;
_assemblyVersion = 
baseException.TargetSite.DeclaringType.Assembly.GetName().Version.ToString();

What goal would this enhancement help you achieve?

We are storing the last revision number in svn for each assembly into 
AssemblyFileVersion attribute. When an error is raised we would like to know 
the corresponding version of the source file which caused the error.

Thanks!

Original issue reported on code.google.com by adrian.i...@gmail.com on 8 Oct 2011 at 12:58

Attachments: