internal static ProjectItem GetGeneratedItem(this ProjectItem projectItem) { foreach (ProjectItem item in projectItem.GetChildren()) { if (Path.GetFileNameWithoutExtension(item.GetPath()).Equals(Path.GetFileNameWithoutExtension(projectItem.GetPath()))) { return(item); } } return(null); }