SIGN UP MEMBER LOGIN:    
ARTICLE

How to Load .Net assemblies in powershell

Posted by Vijai Anand Articles | C# Assemblies April 12, 2011
In this article we will be seeing how to load the .Net assemblies in the powershell and how to access the methods.
Reader Level:

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

Login to add your contents and source code to this article
share this article :
post comment
 
Nevron Gauge for SharePoint
Become a Sponsor
PREMIUM SPONSORS
  • Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Become a Sponsor