IVsBuildManagerAccessor2::GetSolutionConfiguration Method (Object^, String^)

 

Gets the solution configuration.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

int GetSolutionConfiguration(
	Object^ punkRootProject,
	[OutAttribute] String^% pbstrXmlFragment
)

Parameters

punkRootProject
Type: System::Object^

The 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.

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.

Return to top
Show: