W
wurzelCidermaker
I have created a very simple C# class library (DLL).
I have ticked the "Register for COM interop" option in the project
properties dialog.
I have made the [assembly: ComVisible(true)] in the AssemblyInfo.cs file.
I can call a public method in this library from VBScript.
So far so good, now I'd like to have some very *simple* loggging capability.
For other applications I've gone down the [log4net] route and rolled by own
loggers etc...etc.
For this tiny DLL, I'd like to have for example the option to just drop a
[myDll.dll.config] file into the same directory as the DLL and add a trace
listener that outputs to a file or optionally roll my own trace listener
(i.e. udp).
I've successfully done things with trace listeners, but cannot get the DLL
to pick up the custom trace listener config file.
I've tried various names for the config file, but no joy.
Any suggestions?
Is it because I'm calling it from a VBScript file and not a .NET application?
I have ticked the "Register for COM interop" option in the project
properties dialog.
I have made the [assembly: ComVisible(true)] in the AssemblyInfo.cs file.
I can call a public method in this library from VBScript.
So far so good, now I'd like to have some very *simple* loggging capability.
For other applications I've gone down the [log4net] route and rolled by own
loggers etc...etc.
For this tiny DLL, I'd like to have for example the option to just drop a
[myDll.dll.config] file into the same directory as the DLL and add a trace
listener that outputs to a file or optionally roll my own trace listener
(i.e. udp).
I've successfully done things with trace listeners, but cannot get the DLL
to pick up the custom trace listener config file.
I've tried various names for the config file, but no joy.
Any suggestions?
Is it because I'm calling it from a VBScript file and not a .NET application?