| 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 |
Retrieves comprehensive metadata and information about a .NET assembly.
Get-AssemblyInfo [[-Path] <String>] [[-TypeName] <String>] [<CommonParameters>]The Get-AssemblyInfo cmdlet analyzes a .NET assembly file and returns detailed metadata including assembly name, version, culture, public key token, target framework, type count, module count, entry point information, processor architecture, and other assembly characteristics.
PS C:\> Get-AssemblyInfo -Path "$PSHOME/System.Linq.dll"This command returns rich metadata about System.Linq.dll, including FullName, Version, and TargetFramework.
PS C:\> Get-ChildItem -Path .\lib -Filter '*.dll' | Get-AssemblyInfoThis command enumerates all DLLs in ./lib and returns assembly metadata for each file via the pipeline.
PS C:\> Get-AssemblyInfo -Path "./lib/MyLibrary.dll" | Select-Object FullName, TargetFramework, TypeCountThis command selects and displays only the FullName, TargetFramework, and TypeCount properties for concise output.
PS C:\> Get-AssemblyInfo -TypeName "System.Web.HttpUtility"This command resolves the loaded type to its defining assembly and returns assembly metadata without specifying -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: FalseSystem.String — accepts assembly file paths from the pipeline.
Returns an ISpyAssemblyInfo object containing assembly metadata.
- The cmdlet returns rich metadata including name, version, culture, public key token, target framework, and more.