Edit

Share via


IDesignTimeAssemblyLoader.GetTargetAssemblyPath Method

Definition

Determines the load path for the specified assembly in the target framework.

public:
 System::String ^ GetTargetAssemblyPath(System::Reflection::AssemblyName ^ runtimeOrTargetAssemblyName, System::String ^ suggestedAssemblyPath, System::Runtime::Versioning::FrameworkName ^ targetFramework);
public string GetTargetAssemblyPath (System.Reflection.AssemblyName runtimeOrTargetAssemblyName, string suggestedAssemblyPath, System.Runtime.Versioning.FrameworkName targetFramework);
abstract member GetTargetAssemblyPath : System.Reflection.AssemblyName * string * System.Runtime.Versioning.FrameworkName -> string
Public Function GetTargetAssemblyPath (runtimeOrTargetAssemblyName As AssemblyName, suggestedAssemblyPath As String, targetFramework As FrameworkName) As String

Parameters

runtimeOrTargetAssemblyName
AssemblyName

The full assembly name for the runtime or target assembly.

suggestedAssemblyPath
String

The suggested path from which to load the assembly.

targetFramework
FrameworkName

The target framework for the designer.

Returns

The actual load path for the assembly, or null if the assembly is not loadable.

Remarks

Gives the designer an opportunity to resolve assemblies that are not project references and that are not part of the .NET Framework redistribution. Also allows the designer to alter paths to prevent any runtime assemblies from being locked.

Applies to