Microsoft.VisualStudio.Project.ProjectFactory.ProjectTypeGuids C# (CSharp) Method

ProjectTypeGuids() protected method

Retrives the list of project guids from the project file. If you don't want your project to be flavorable, override to only return your project factory Guid: return this.GetType().GUID.ToString("B");
protected ProjectTypeGuids ( string file ) : string
file string Project file to look into to find the Guid list
return string
        protected override string ProjectTypeGuids(string file)
        {
            // Load the project so we can extract the list of GUIDs

            this.buildProject = Utilities.ReinitializeMsBuildProject(this.buildEngine, file, this.buildProject);

            // Retrieve the list of GUIDs, if it is not specify, make it our GUID
            string guids = buildProject.GetPropertyValue(ProjectFileConstants.ProjectTypeGuids);
            if(String.IsNullOrEmpty(guids))
                guids = this.GetType().GUID.ToString("B");

            return guids;
        }