Quantcast
Channel: How to reference .NET assemblies using PowerShell - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Andy Schneider for How to reference .NET assemblies using PowerShell

With PowerShell 2.0, you can use the built in Cmdlet Add-Type.You would just need to specify the path to the dll. Add-Type -Path foo.dllAlso, you can use inline C# or VB.NET with Add-Type. The @"...

View Article



Answer by Darin Dimitrov for How to reference .NET assemblies using PowerShell

Take a look at the blog post Load a Custom DLL from PowerShell:Take, for example, a simple math library. It has a static Sum method, and an instance Product method:namespace MyMathLib{ public class...

View Article

How to reference .NET assemblies using PowerShell

I am a C# .NET developer/architect and understand that it uses objects (.NET objects) and not just streams/text.I would like to be able to use PowerShell to call methods on my .NET (C# library)...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images