i created dll called myTools.dll, put it in the GAC (assembly), and i see it there.
i want to load this dll and access it's static methods.
i tried to do Add-Type -AssemblyName myTools;
and get error that
Add-Type : Cannot add type. The assembly 'myTools' could not be found.
I'm pretty sure you're not adding the assembly to the GAC properly if you just dragged and dropped a DLL into that location, but I'm not certain. Anyhow, if that call to Assembly.LoadFile works, then you should be able to load it this way with the Path parameter instead of AssemblyName: