Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get AppDomain for another .NET framework process

I am trying to get the AppDomain for all the .NET Framework processes running on my machine. Any advice on how to do that?

like image 827
swetha Avatar asked Jun 13 '26 23:06

swetha


1 Answers

Im not entirely clear on what you are trying to do, but if you want to enumerate all running AppDomains by attaching Visual Studio to a process, see this link: Jack Gudenkauf "Enumerating AppDomains"

In that same vein, if you want to do this AT RUNTIME (without Visual Studio) then you will probably need to include a managed debugger in your program which will allow you to 'attach' to another process. Take a look at the managed debugger example, this demonstrates a debugger, written in C#. It will then allow you to execute an 'extension' within the target application process, such as is done in Jack Gudenkauf's article. CLR Managed Debugger (mdbg) Sample

like image 191
Adam Avatar answered Jun 15 '26 16:06

Adam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!