ProjectCollection.GetToolset(String) 方法

定义

获取具有指定工具版本的工具集。Gets the toolset with the specified tools version.

public:
 virtual Microsoft::Build::Evaluation::Toolset ^ GetToolset(System::String ^ toolsVersion);
public Microsoft.Build.Evaluation.Toolset GetToolset (string toolsVersion);
abstract member GetToolset : string -> Microsoft.Build.Evaluation.Toolset
override this.GetToolset : string -> Microsoft.Build.Evaluation.Toolset
Public Function GetToolset (toolsVersion As String) As Toolset

参数

toolsVersion
String

要匹配的工具版本。The tools version to match.

返回

具有指定工具版本的工具集,或者如果不存在匹配此工具版本的工具集,则为 nullThe toolset with the specified tools version, or null if no toolset matching this tools version exists.

适用于