Given the full path to a solution, returns a string containing the v3.5 MSBuild-format wrapper project for that solution.
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 Shared Function Generate ( _
    solutionPath As String, _
    toolsVersionOverride As String, _
    projectBuildEventContext As BuildEventContext _
) As String
public static string Generate(
    string solutionPath,
    string toolsVersionOverride,
    BuildEventContext projectBuildEventContext
)
public:
static String^ Generate(
    String^ solutionPath, 
    String^ toolsVersionOverride, 
    BuildEventContext^ projectBuildEventContext
)
static member Generate : 
        solutionPath:string * 
        toolsVersionOverride:string * 
        projectBuildEventContext:BuildEventContext -> string
public static function Generate(
    solutionPath : String, 
    toolsVersionOverride : String, 
    projectBuildEventContext : BuildEventContext
) : String
Parameters
- solutionPath 
 Type: System.String- Full path to the solution we are wrapping 
- toolsVersionOverride 
 Type: System.String- May be null. If non-null, contains the ToolsVersion passed in on the command line 
- projectBuildEventContext 
 Type: Microsoft.Build.Framework.BuildEventContext- An event context for logging purposes. 
Return Value
Type: System.String
A string containing the path to the solution.
.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.