static string LoadProjectTypeGuids(string fileName) { MSBuildProject project = new MSBuildProject(); project.Load(fileName); MSBuildPropertySet globalGroup = project.GetGlobalPropertyGroup(); if (globalGroup == null) { return(null); } return(globalGroup.GetPropertyValue("ProjectTypeGuids")); }