Skip to content

Resolve AssemblyDependencies

Apostolis Bekiaris edited this page Apr 23, 2020 · 4 revisions

external help file: XpandPwsh.Cmdlets.dll-Help.xml Module Name: XpandPwsh online version: https://go.microsoft.com/fwlink/?LinkID=2097043 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\XpandPwsh\XpandPwsh\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

image

image


Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally