Compartilhar via


IVsBuildManagerAccessor3.GetSolutionConfiguration(Object, String) Method

Definition

Gets the solution configuration.

public:
 int GetSolutionConfiguration(System::Object ^ punkRootProject, [Runtime::InteropServices::Out] System::String ^ % pbstrXmlFragment);
int GetSolutionConfiguration(winrt::Windows::Foundation::IInspectable const & punkRootProject, [Runtime::InteropServices::Out] std::wstring const & & pbstrXmlFragment);
public int GetSolutionConfiguration (object punkRootProject, out string pbstrXmlFragment);
abstract member GetSolutionConfiguration : obj * string -> int
Public Function GetSolutionConfiguration (punkRootProject As Object, ByRef pbstrXmlFragment As String) As Integer

Parameters

punkRootProject
Object

The IVsHierarchy project about to be built that will receive the returned solution configuration.

pbstrXmlFragment
String

[out] An XML fragment, interpreted as a string, that should be passed to MSBuild.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

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.

Applies to