src/Misc/EFTools/DesignXmlCore/VisualStudio/VSHelpers.cs
/// <summary>
///     Given a path to a document, this method will return the Project that the document is contained in.
///     This method uses a cached, sited VsPackage as an IServiceProvider (Package.GetGlobalService)
/// </summary>
/// <param name="path"></param>
/// <returns></returns>
Given a path to a document, this method will return the Project that the document is contained in.
This method uses a cached, sited VsPackage as an IServiceProvider (Package.GetGlobalService)
Given a path to a document this method will return the Project that the document is contained in . This method uses a cached sited VsPackage as an IServiceProvider ( Package . GetGlobalService )
internal static Project GetProjectForDocument(string path)
        {
            uint itemId = 0;
            var isDocInProject = false;
            IVsHierarchy projectHierarchy = null;
            Project project = null;
            GetProjectAndFileInfoForPath(path, out projectHierarchy, out project, out itemId, out isDocInProject);
            return project;
        }
internal static Project GetProjectForDocument ( string path ) { uint itemId = 0 ; var isDocInProject = false ; IVsHierarchy projectHierarchy = null ; Project project = null ; GetProjectAndFileInfoForPath ( path , out projectHierarchy , out project , out itemId , out isDocInProject ) ; return project ; }
Given a path to a document, this method will return the Project that the document is contained in.
Given a path to a document this method will return the Project that the document is contained in .
None
path
string
None