Toolset Constructor (String, String, IDictionary<String, String>, ProjectCollection, IDictionary<String, SubToolset>, String)
Creates a toolset with the given tools version and tools path. Global, reserved, and environment properties are taken from the given project collection.
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.Evaluation
Assembly: Microsoft.Build (in Microsoft.Build.dll)
Syntax
'Declaration
Public Sub New ( _
toolsVersion As String, _
toolsPath As String, _
buildProperties As IDictionary(Of String, String), _
projectCollection As ProjectCollection, _
subToolsets As IDictionary(Of String, SubToolset), _
msbuildOverrideTasksPath As String _
)
public Toolset(
string toolsVersion,
string toolsPath,
IDictionary<string, string> buildProperties,
ProjectCollection projectCollection,
IDictionary<string, SubToolset> subToolsets,
string msbuildOverrideTasksPath
)
public:
Toolset(
String^ toolsVersion,
String^ toolsPath,
IDictionary<String^, String^>^ buildProperties,
ProjectCollection^ projectCollection,
IDictionary<String^, SubToolset^>^ subToolsets,
String^ msbuildOverrideTasksPath
)
new :
toolsVersion:string *
toolsPath:string *
buildProperties:IDictionary<string, string> *
projectCollection:ProjectCollection *
subToolsets:IDictionary<string, SubToolset> *
msbuildOverrideTasksPath:string -> Toolset
public function Toolset(
toolsVersion : String,
toolsPath : String,
buildProperties : IDictionary<String, String>,
projectCollection : ProjectCollection,
subToolsets : IDictionary<String, SubToolset>,
msbuildOverrideTasksPath : String
)
Parameters
toolsVersion
Type: System.StringName of the toolset.
toolsPath
Type: System.StringPath to this toolset's tasks and targets.
buildProperties
Type: IDictionary<String, String>Properties that should be associated with the Toolset.
May be null, in which case an empty property group will be used.
projectCollection
Type: Microsoft.Build.Evaluation.ProjectCollectionThe project collection from which to obtain the properties.
subToolsets
Type: IDictionary<String, SubToolset>The set of sub toolsets to add to this toolset.
msbuildOverrideTasksPath
Type: System.StringThe path to search for msbuild overridetasks files. The set of sub-toolsets to add to this toolset
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.