StackFrame, Logging, and the GAC

lonewolf32

Newcomer
Joined
May 3, 2006
Messages
17
With our latest release we are starting to install shared assemblies into the GAC, which in itself is no big deal. However, we do have a problem for which I did find a solution, but the solution might not be very attractive or even viable for Vista.

A while back we added methods to a Logger class that accept a stack frame number to obtain file name and line number information, and many of our C# component use these methods. Internally the Logger class makes use of the
.NET StackTrace class which in turn relies on the corresponding PDB, which must be in the same folder as the assembly. And all this works perfectly.

Now we've got our assemblies in the GAC, which means we also have to copy our PDB's into the GAC, which is probably quite problematic, but I don't know what else to do except pulling the stack frame based Logger methods. That would mean that we would lose line number information.

Any ideas?
 
Back
Top