June 8, 2009

Load Assemblies in Powershell

There is a myriad of ways to do this, but I wanted to do it from a lib folder within my application as opposed to the GAC or by full path. It was actually quite simple:
# References
Add-Type -Assembly System.Configuration
[System.Reflection.Assembly]::LoadFrom($MY_DIR + "\lib\ICSharpCode.SharpZipLib.dll")

No comments:

Post a Comment