Created
January 31, 2013 15:30
-
-
Save xcud/4683707 to your computer and use it in GitHub Desktop.
Pipeable shortcut for [reflection.assembly]::LoadFrom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Pipeable shortcut for [reflection.assembly]::LoadFrom. | |
.Example | |
PS> dir c:\foo.dll | Load-Assembly | |
GAC Version Location | |
--- ------- -------- | |
False v2.0.50727 C:\foo.dll | |
#> | |
function Load-Assembly { | |
param( [Parameter(Mandatory=$True, Position=0, ValueFromPipeline=$true)] $Path); | |
[reflection.assembly]::LoadFrom($Path) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment