SharedProjectUtilities::IsProjectImportingSharedAssets Method (IVsHierarchy^)

Visual Studio 2015
 

Determines whether the given project imports shared assets.

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

public:
[ExtensionAttribute]
static bool IsProjectImportingSharedAssets(
	IVsHierarchy^ hierarchy
)

Parameters

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

The project hierarchy.

Return Value

Type: System::Boolean

True if the given project importing the shared assets; otherwise, false.

The Shared Assets Project also imports the shared assets, so this method returns true for the Shared Assets Project as well. Please use the IsSharedAssetsProject method to find the Shared Assets Project. This method is used to detect the consumer project who is importing the shared assets.

Return to top
Show: