Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...