【发布时间】:2012-01-04 01:00:21
【问题描述】:
我在 GAC 中有两个 DLL 文件。
DLL 文件 A 引用 DLL 文件 B。
我使用以下方法从 PowerShell 脚本加载 DLL 文件:
[Reflection.Assembly]::Load(full name of dll B)
[Reflection.Assembly]::Load(full name of dll A)
尽管如此,当 DLL 文件 A 需要使用 B 中的某个类时,我收到以下错误。
找不到文件'C:\WINDOWS\system32\WindowsPowerShell\v1.0\B.dll'。
【问题讨论】:
标签: .net dll powershell .net-4.0 gac