March 30th, 2013

PowerTip: Use PowerShell to Find Calling Assembly

Doctor Scripto
Scripter

Summary: Learn how to use Windows PowerShell to find the calling assembly.

Hey, Scripting Guy! Question How can I find the name of a calling assembly from within Windows PowerShell?

Hey, Scripting Guy! Answer Use the GetCallingAssembly static method from the [system.Reflection.Assembly] class:

[system.reflection.assembly]::GetCallingAssembly()

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback