ProjectCollection.DefaultToolsVersion 属性

定义

获取此项目集合的默认工具版本。Gets the default tools version of this project collection.

public:
 property System::String ^ DefaultToolsVersion { System::String ^ get(); void set(System::String ^ value); };
public string DefaultToolsVersion { get; set; }
member this.DefaultToolsVersion : string with get, set
Public Property DefaultToolsVersion As String

属性值

始终定义的此项目集合的默认工具版本。The default tools version of this project collection, which is always defined.

注解

此默认值是从系统注册表中获取,如果两者都不存在,则从硬编码工具版本 "2.0" 获得。This default value is obtained from the .exe.config file, from the system registry, or if neither is present, from the hard-coded tools version "2.0".

如果尚未定义具有提供的工具版本的工具集,则 set 方法会引发 InvalidOperationException。The set method throws InvalidOperationException if a toolset with the provided tools version has not been defined.

适用于