Skip to content

Resolve AssemblyDependencies

apobekiaris edited this page May 20, 2019 · 1 revision

external help file: XpandPosh.Cmdlets.dll-Help.xml Module Name: XpandPosh online version: schema: 2.0.0

Resolve-AssemblyDependencies

SYNOPSIS

Resolve all referenced assemblies for a given assembly, reclusively.

SYNTAX

Resolve-AssemblyDependencies [-AssemblyFile] <String> [-SkipGAC] [[-Locations] <String[]>] [<CommonParameters>]

DESCRIPTION

Resolve all referenced assemblies for a given assembly. This is a dependency walker that will go through all types, methods forcing .NET to load the dependent assemblies.

EXAMPLES

Example 1

PS C:\> Resolve-AssemblyDependencies -AssemblyFile "C:\Work\eXpandFramework\expand\Xpand.dll\Xpand.ExpressApp.AuditTrail.dll" -SkipGAC -OutputType Assembly

GAC    Version        Location
---    -------        --------
False  v4.0.30319     C:\Work\eXpandFramework\XpandPosh\XpandPosh\Cmdlets\bin\Fasterflect.dll
False  v4.0.30319     C:\Work\eXpandFramework\expand\Xpand.dll\Mono.Cecil.dll
False  v4.0.30319     C:\Work\eXpandFramework\expand\Xpand.dll\Xpand.ExpressApp.AuditTrail.dll
False  v4.0.30319     C:\Work\eXpandFramework\expand\Xpand.dll\Xpand.ExpressApp.Logic.dll
False  v4.0.30319     C:\Work\eXpandFramework\expand\Xpand.dll\Xpand.ExpressApp.Security.dll
False  v4.0.30319     C:\Work\eXpandFramework\expand\Xpand.dll\Xpand.Persistent.Base.dll
False  v4.0.30319     C:\Work\eXpandFramework\expand\Xpand.dll\Xpand.Utils.dll
False  v4.0.30319     C:\Work\eXpandFramework\expand\Xpand.dll\Xpand.XAF.Modules.CloneModelView.dll
False  v4.0.30319     C:\Work\eXpandFramework\expand\Xpand.dll\Xpand.XAF.Modules.ModelViewInheritance.dll
False  v4.0.30319     C:\Work\eXpandFramework\expand\Xpand.dll\Xpand.Xpo.dll

Returns all the Xpand.ExpressApp.AuditTrail.dll dependent System.Reflection.Assembly that are not in GAC.

PARAMETERS

-AssemblyFile

Path to the assembly.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Locations

By default if an assembly fail to resolve a lookup will be in the same directory as the starting assembly. Using this parameter you may add multiple folder for assembly lookups.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SkipGAC

Return assemblies not in GAC.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally
You can’t perform that action at this time.