Component UtilitiesAssembly Folder Method
This is used to get the physical location of the specified assembly
Definition
Namespace: Sandcastle.Core
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
This returns the actual location of the assembly, where it was found versus where it is executing from, which may be different if shadow copied. This is required in order to find supporting files which will not be present in the shadow copied location.
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
C#
public static string AssemblyFolder(
Assembly assembly
)VB
Public Shared Function AssemblyFolder (
assembly As Assembly
) As StringC++
public:
static String^ AssemblyFolder(
Assembly^ assembly
)F#
static member AssemblyFolder :
assembly : Assembly -> string Parameters
- assembly Assembly
- The assembly for which to get the physical location (the currently executing (calling) assembly if null).
Return Value
StringThis returns the actual location of the assembly, where it was found versus where it is executing from, which may be different if shadow copied. This is required in order to find supporting files which will not be present in the shadow copied location.