|
Post by watercoolerwarrior on Aug 23, 2008 20:51:11 GMT
I've downloaded the EagleWare binaries and I'm using them to do some basic stuff from PowerShell - parsing shiparch/weapon_equip for report generation. PowerShell exists in an OS system folder, and although I can load the assemblies directly interactively, the IniParser chokes when I try to load an INI file since it can't find the GeneralNonsense DLL (I'm loading with Reflection.Assembly's LoadFile method).
I've been able to work around this by just running gacutil against the lot and then doing a quick-and-dirty LoadWithPartialName. IIRC, this is one of those weird problems that true applications don't encounter, since they'll actually import a copy of the DLL to the application's base directory. That's not possible with PowerShell (and is very un-script-like). Although this isn't exactly the kind of use you intended (nor a problem truly specific to the EagleWare binaries), do you recall a workaround that requires neither copying the EagleWare files to the PowerShell directory nor using gacutil?
The other option I considered was just merging all of the binaries. I don't like doing that, either, though, since it strikes me as an ugly hack. There are Good Reasons for keeping those binaries distinct; the entire coding process is cleaner.
|
|
|
Post by Eagle on Aug 24, 2008 1:30:27 GMT
Assembly.LoadFile does not resolve dependencies using the load path. The LoadFrom method however does and would suit your specific need.
|
|
|
Post by watercoolerwarrior on Sept 6, 2008 19:46:07 GMT
Assembly.LoadFile does not resolve dependencies using the load path. The LoadFrom method however does and would suit your specific need. DOH! Thanks. I should have looked farther in .NET Reflector. It's actually a bit embarrassing since I've been working around problems I have from NOT using LoadFrom with various assemblies for a good year or so. ;D
|
|