IVsSharedMSBuildFilesManagerHierarchy2::GetSharedProjectReference Method (String^, IVsHierarchy^)

Visual Studio 2015
 

Gets an IVsSharedProjectReference object for a particular shared MSBuild file if it is referenced/imported by the given referencingProject, client (aka "Head") project. All callers must be prepared to check for a null return value.

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

IVsSharedProjectReference^ GetSharedProjectReference(
	String^ sharedFileFullPath,
	IVsHierarchy^ ReferencingProject
)

Parameters

sharedFileFullPath
Type: System::String^

The full path of a (potential) shared project file.

ReferencingProject
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

The IVsHierarchy of a project that may be referencing a Shared Project (i.e. importing the shared project file owned by the Shared Project).

Return Value

Type: Microsoft.VisualStudio.Shell.Interop::IVsSharedProjectReference^

An IVsSharedProjectReference object or null if the given sharedFileFullPath has not been registered with the IVsSharedMSBuildFilesManagerHierarchy by the referencingProject.

Return to top
Show: