IDesignTimeAssemblyLoader.GetTargetAssemblyPath Method (AssemblyName, String, FrameworkName)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

string GetTargetAssemblyPath(
	AssemblyName runtimeOrTargetAssemblyName,
	string suggestedAssemblyPath,
	FrameworkName targetFramework


Type: System.Reflection.AssemblyName

The full assembly name for the runtime or target assembly.

Type: System.String

The suggested path from which to load the assembly.

Type: System.Runtime.Versioning.FrameworkName

The target framework for the designer.

Return Value

Type: System.String

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

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.

.NET Framework
Available since 4.0
Return to top