| external help file | ISpy.dll-Help.xml |
|---|---|
| Module Name | ISpy |
| online version | https://github.com/trackd/ISpy/blob/main/docs/en-US |
| schema | 2.0.0 |
Analyzes and lists assembly dependencies and references.
Get-Dependency [[-Path] <String>] [[-TypeName] <String>] [-ExternalOnly] [<CommonParameters>]The Get-Dependency cmdlet analyzes a .NET assembly and returns information about its dependencies and referenced assemblies.
PS C:\> Get-Dependency -Path "$PSHOME/Humanizer.dll"This command lists assemblies referenced by the specified system library.
PS C:\> Get-Dependency -Path './lib/MyLibrary.dll' -ExternalOnlyThis command lists only external references (skips self-references) for MyLibrary.dll.
PS C:\> Get-Dependency -TypeName 'System.Web.HttpUtility'This command resolves the loaded type to its defining assembly and returns referenced dependencies without requiring -Path.
Specifies the path to the .NET assembly file to analyze.
Type: String
Required: False
Position: 0
Accept pipeline input: True (ByPropertyName, ByValue)Resolves the assembly from a currently loaded type name when -Path is omitted.
Type: String
Required: False
Position: 1
Accept pipeline input: FalseOnly return external dependencies (skip self-references).
Type: SwitchParameter
Required: False
Position: NamedSystem.String — accepts assembly file paths from the pipeline.
- Use
-ExternalOnlyto filter out self-references.