Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 查找“的.dll”;“外部”;类在VisualStudio中的调试器中显示_.net_Powershell_Visual Studio 2017_Azure Active Directory - Fatal编程技术网

.net 查找“的.dll”;“外部”;类在VisualStudio中的调试器中显示

.net 查找“的.dll”;“外部”;类在VisualStudio中的调试器中显示,.net,powershell,visual-studio-2017,azure-active-directory,.net,Powershell,Visual Studio 2017,Azure Active Directory,简而言之: 我的调试器显示了一个名为Microsoft.Open.AzureAD.Model.User的类 如何找到像这样的“外部”类的dll 打开(这有点像用于调试的REPL),然后从以下类型获取程序集: BaseObject.GetType().Assembly 即: debug.print(Result(0).BaseObject.GetType().Assembly.CodeBase) 输出: file:///C:/Program Files/WindowsPowerShell/Mo

简而言之:

我的调试器显示了一个名为Microsoft.Open.AzureAD.Model.User的类

如何找到像这样的“外部”类的dll

打开(这有点像用于调试的REPL),然后从以下类型获取程序集:

BaseObject.GetType().Assembly
即:

debug.print(Result(0).BaseObject.GetType().Assembly.CodeBase)
输出:

file:///C:/Program Files/WindowsPowerShell/Modules/AzureAD/2.0.0.115/Microsoft.Open.AzureAD16.Graph.Client.dll

可能的重复我已经稍微更改了我的问题,以询问查找dll的方法,而不是获取..Model.User类的特定dll的名称