Project Constructor (Engine, String)
Initializes a new instance of the Project class using the supplied Engine and ToolsVersion.
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.BuildEngine
Assembly: Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)
Syntax
'Declaration
Public Sub New ( _
engine As Engine, _
toolsVersion As String _
)
public Project(
Engine engine,
string toolsVersion
)
public:
Project(
Engine^ engine,
String^ toolsVersion
)
new :
engine:Engine *
toolsVersion:string -> Project
public function Project(
engine : Engine,
toolsVersion : String
)
Parameters
engine
Type: Microsoft.Build.BuildEngine.EngineThe Engine instance to use for creating the project in memory.
toolsVersion
Type: System.StringThe ToolsVersion to use for creating the project in memory.
.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.