nobitagamer / 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 8 years ago

GoogleCodeExporter commented 8 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:

GoogleCodeExporter commented 8 years ago
This issue has been migrated to:
https://github.com/elmah/Elmah/issues/255
The conversation continues there.
DO NOT post any further comments to the issue tracker on Google Code as it is 
shutting down.
You can also just subscribe to the issue on GitHub to receive notifications of 
any further development.

Original comment by azizatif on 25 Aug 2015 at 8:21