How to Load .Net assemblies in powershell

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

assembly1.gif

My Solution looks like the following.

assembly2.gif

Build the solution.

Load the assembly:

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

Access the method:

[LoadAssembly.Load]::method()

assembly3.gif

Up Next
    Ebook Download
    View all
    Learn
    View all