Expand Minimize


Describes the context when querying IVsProjectFlavorReferences3.

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


Member nameDescription
VSQUERYFLAVORREFERENCESCONTEXT_AddReferenceIndicates the project system is attempting to add a new project reference. Normally this happens when a user attempts to add a new project reference through the Reference Manager dialog. The flavor can deny the project reference and show the proper error dialog to prompt the user.
VSQUERYFLAVORREFERENCESCONTEXT_LoadReferenceIndicates the project system is loading the references, which happens when loading a project. As the project is not loaded yet, if the flavor denies the project reference, the project will fail to load. Therefore the flavor should allow any project reference for this context, in order to unblock project loading. The flavor can deny the invalid project reference later when the context is VSQUERYFLAVORREFERENCESCONTEXT.
VSQUERYFLAVORREFERENCESCONTEXT_RefreshReferenceIndicates the project system is attempting to refresh an existing project reference. This can occur in several scenarios. For example, when the project is first loaded, the project reference is unresolved, so the project system needs to refresh the reference to get it resolved. Additionally, when the reference project is changed, this flavored project also needs to refresh its project reference. The flavor should suppress any UI for this context to avoid confusing the user; instead the flavor can set a proper error message in the output parameter pbstreReason to show the error message in the Error List View.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft