ToolLocationHelper.GetPathToReferenceAssemblies Method (String, FrameworkName)


Gets the paths to the reference assemblies location for the given framework version relative to a given targetFrameworkRoot.

MSBuild is now included in Visual Studio instead of the .NET Framework.You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:   Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)

public static IList<string> GetPathToReferenceAssemblies(
	string targetFrameworkRootPath,
	FrameworkName frameworkName


Type: System.String

Root directory which will be used to calculate the reference assembly path. The references assembies will be generated in the following way TargetFrameworkRootPath\TargetFrameworkIdentifier\TargetFrameworkVersion\SubType\TargetFrameworkSubType.

Type: System.Runtime.Versioning.FrameworkName

A frameworkName class which represents a TargetFrameworkMoniker. This cannot be null.

Return Value

Type: System.Collections.Generic.IList<String>

Returns the paths to the reference assemblies location.

This method does not check to see if the path exists or not.

Return to top