Is it possible to configure System.Diagnostics.Debug and
System.Diagnostics.Trace in a Visio add-in at runtime? I've created a VSTO
add-in using Visual Studio 2008.
The add-in will get installed in C:\Program Files\VisioAddin. Can I create a
configuration file, like in the TextWriterTraceListener example?
Where do I have to place this configuration file?. I tried multiple
locations - C:\Program Files\VisioAddin\VisioAddin.config
- C:\Program Files\VisioAddin\VisioAddin.dll.config
(both assuming that there is a main assembly called VisioAddin.dll that
contains the startup method and that there is a VisioAddin.dll.manifest)
- VISIO.EXE.config in the Office installation directory
I've only found this example (for Outlook), in which a
TextWriterTraceListener is configured in code:
But I want it to be configurable at runtime.