IVsSharedProjectReferencesHelper::ChangeSharedProjectReferences Method (IVsHierarchy^, Int32, array<Object^>^, Int32, array<Object^>^)

Visual Studio 2015
 

Changes the set of Shared Projects referenced by a project.

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

bool ChangeSharedProjectReferences(
	IVsHierarchy^ ReferencingProject,
	int cReferencesToRemove,
	array<Object^>^ referencesToRemove,
	int cReferencesToAdd,
	array<Object^>^ referencesToAdd
)

Parameters

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

The project that is using the AddReferenceManager dialog to add SharedProject references.

cReferencesToRemove
Type: System::Int32

The numberof SharedProject References to be removed.

referencesToRemove
Type: array<System::Object^>^

An array of SharedProject references to be removed. Each element of the array is expected to support IVsSharedProjectReference or IVsHierarchy interface.May be null if there are no references to be removed.

cReferencesToAdd
Type: System::Int32

The number of SharedProject References to be added.

referencesToAdd
Type: array<System::Object^>^

An array of SharedProject references to be added. Each element of the array is expected to support IVsSharedProjectReference or IVsHierarchy interface. May be null if there are no references to be added.

Return Value

Type: System::Boolean

True if project has been reloaded, false if not.

This method is often used by projects as an implementation detail of their IVsReferenceManagerUserReloadRequired::ApplyReloadRequiredReferenceChanges implementation. This method may cause the referencingProject to be reloaded as part of this operation. If this method returns true that the project was reloaded, then the caller must get the project again by calling IVsSolution.GetProjectOfGuid or similar mechanism after this method returns. Shared Project References use MSBuild import statements that are tagged with the label "Shared".

Return to top
Show: