I got two DLL files in the GAC.
DLL file A references DLL file B.
From a PowerShell script I’m using the following method to load the DLL files:
[Reflection.Assembly]::Load(full name of dll B)
[Reflection.Assembly]::Load(full name of dll A)
Despite this when DLL file A needs to use some class from B I get the following error.
Could not find file ‘C:\WINDOWS\system32\WindowsPowerShell\v1.0\B.dll’.
If both dlls are in the same directory you could try: