a. .Net VB/C# Design-Time vs. Run-Time
-
Although it is an easy task to determine whether or not a tool is running in the Integrated Development Environment or in a compiled executable outside of the IDE, I’m having great difficulty in doing so with a non-tool DLL. I have created a custom DLL in VB .NET that provides only objects and shared methods… none of which require the creation of a tool style interface. The objects are simply created, used and destroyed by the calling code, as needed. Is there a way that I can determine whether or not my DLL is being loaded and run by an application from within the IDE (development environment) or is being called from a compiled executable or other process outside of the development environment? It seems that I ran across an article on how to do this a few months ago, but have been totally unable to locate that article again. I’ve gone back through all of the .NET documentation I have on hand and have not been able to locate that particular article. I would very much appreciate a bit of sample code from someone who knows how this is done… if it can be done, as I am quickly going blind from all the searching. Thanks