Toolset Constructor (String, String, ProjectCollection, 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, _
projectCollection As ProjectCollection, _
msbuildOverrideTasksPath As String _
)
public Toolset(
string toolsVersion,
string toolsPath,
ProjectCollection projectCollection,
string msbuildOverrideTasksPath
)
public:
Toolset(
String^ toolsVersion,
String^ toolsPath,
ProjectCollection^ projectCollection,
String^ msbuildOverrideTasksPath
)
new :
toolsVersion:string *
toolsPath:string *
projectCollection:ProjectCollection *
msbuildOverrideTasksPath:string -> Toolset
public function Toolset(
toolsVersion : String,
toolsPath : String,
projectCollection : ProjectCollection,
msbuildOverrideTasksPath : String
)
Parameters
toolsVersion
Type: System.StringName of the toolset
toolsPath
Type: System.StringPath to this toolset's tasks and targets
projectCollection
Type: Microsoft.Build.Evaluation.ProjectCollectionThe project collection from which to obtain the properties.
msbuildOverrideTasksPath
Type: System.StringThe path to search for msbuild overridetasks files.
.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.