ravi ravi - 2 months ago 15
C# Question

Is it possible to load multiple .dll's using powershell?

I have 10 .dll's which has to be loaded, is it possible to do using the powershell? Small snippet on the same is much appreciated

Answer

I think you can load them all by doing the following,

$dlls = (Get-ChildItem -path "Path to Folder containing .dlls").fullname

foreach ($dll in $dlls)
{
       Add-Type -Path $dll
}
Comments