Get application from dll in compact 2.0 environment

I am trying to write a method for a Compact Framework 2.0 dll that will return the name of the parent application from which the dll is called, but I am struggling to figure out how to do this.

Using reflection, I can get the DLL I wrote, etc. - any ideas on how to get the app name?

thanks

Morris

+1


source to share


2 answers


And if you want the full path to the EXE:



Assembly.GetCallingAssembly().GetName().CodeBase

      

0


source


you can use



AppDomain.CurrentDomain.FriendlyName

      

+1


source







All Articles