Freigeben über


ProjectCollection.DefaultToolsVersion Property

Definition

The default tools version of this project collection. Projects use this tools version if they aren't otherwise told what tools version to use. This value is gotten from the .exe.config file, or else in the registry, or if neither specify a default tools version then it is hard-coded to the tools version "2.0". Setter throws InvalidOperationException if a toolset with the provided tools version has not been defined. Always defined.

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

Property Value

The default tools version of this project collection, which is always defined.

Remarks

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".

The set method throws InvalidOperationException if a toolset with the provided tools version has not been defined.

Applies to