Partilhar via


ToolLocationHelper.GetDisplayNameForTargetFrameworkDirectory Method

Definition

Figures out a display name given the target framework details. This is the equivalent of the target framework moniker, but for display. If one cannot be found from the redist list file, a synthesized one is returned, so there is always a display name.

public:
 static System::String ^ GetDisplayNameForTargetFrameworkDirectory(System::String ^ targetFrameworkDirectory, System::Runtime::Versioning::FrameworkName ^ frameworkName);
public static string GetDisplayNameForTargetFrameworkDirectory (string targetFrameworkDirectory, System.Runtime.Versioning.FrameworkName frameworkName);
static member GetDisplayNameForTargetFrameworkDirectory : string * System.Runtime.Versioning.FrameworkName -> string
Public Shared Function GetDisplayNameForTargetFrameworkDirectory (targetFrameworkDirectory As String, frameworkName As FrameworkName) As String

Parameters

targetFrameworkDirectory
String

The target framework directory.

frameworkName
FrameworkName

The framework name.

Returns

A display name given the target framework details.

Remarks

This is the equivalent of the target framework moniker, but for display.

If one cannot be found from the redist list file, a synthesized one is returned, so there is always a display name.

Applies to