How to Load .NET Assemblies in Powershell

Building, Loading, and Accessing Methods in PowerShell

I have created a class library as shown in the following.

Solution

My Solution looks like the following.

Solution Explorer

Build the solution.

Load the assembly

Add-Type -Path "C:\LoadAssembly\LoadAssembly\bin\Debug\LoadAssembly.dll"

Access the method

[LoadAssembly.Load]::method()

Administration


Similar Articles