Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IDesignTimeAssemblyLoader.GetTargetAssemblyPath Method

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5, 4
© 2015 Microsoft