Condividi tramite


SolutionWrapperProject.Generate Method

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

Return Value

Type: System.String
A string containing the path to the solution.

.NET Framework Security

See Also

Reference

SolutionWrapperProject Class

Microsoft.Build.BuildEngine Namespace