IVsBuildManagerAccessor.GetSolutionConfiguration Method
Gets the solution configuration.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function GetSolutionConfiguration ( _
punkRootProject As Object, _
<OutAttribute> ByRef pbstrXmlFragment As String _
) As Integer
int GetSolutionConfiguration(
Object punkRootProject,
out string pbstrXmlFragment
)
int GetSolutionConfiguration(
[InAttribute] Object^ punkRootProject,
[OutAttribute] String^% pbstrXmlFragment
)
abstract GetSolutionConfiguration :
punkRootProject:Object *
pbstrXmlFragment:string byref -> int
function GetSolutionConfiguration(
punkRootProject : Object,
pbstrXmlFragment : String
) : int
Parameters
punkRootProject
Type: System.ObjectThe IVsHierarchy project about to be built that will receive the returned solution configuration.
pbstrXmlFragment
Type: System.String%[out] An XML fragment, interpreted as a string, that should be passed to MSBuild.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
This method returns the value that should go into the MSBuild CurrentSolutionConfigurationContents property so that project-to-project references will resolve with the intended configuration as dictated by the solution.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.