A Powershell commandlet that makes it possible to query assemblies
C# PowerShell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Cmdlet-AssemblyInfo
Tests
.gitignore
Cmdlet-AssemblyInfo.sln
LICENSE
Readme.md

Readme.md

Cmdlet-AssemblyInfo

Possible to pick any DLL with or without dependent assemblies and list Types based on different input filters, e.g. Namespace, Attribute, BaseType or FullName.

Install

Through PowershellGet

More information here

Install-Module -Name Cmdlet-AssemblyInfo 

From release

Get the zip package here

Import-Module "..\..\External Tools\CmdletAssemblyInfo\Cmdlet-AssemblyInfo.dll"

Use

The Get-AssemblyTypes takes a DLL as input and can list types from within that dll. There exists a set of parameters to filter these out, the different possibilities are listed below.

Filter by attribute

Get-AssemblyTypes -AssemblyPath "MyAssembly.dll" -AttributeFilter "IncludeSwaggerDocumentation"

Filter by basetype

Get-AssemblyTypes -AssemblyPath "MyAssembly.dll" -BaseTypeFilter "MyBaseType"

Filter by namespace

Get-AssemblyTypes -AssemblyPath "MyAssembly.dll" -Namespace "My.App"

Filter by full name

Get-AssemblyTypes -AssemblyPath "MyAssembly.dll" -FullNameFilter "MyClass"