コード例 #1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Compare this ProjectId to another ProjectId return true if they point to the same
 /// local project, but ignoring the file extension (because one of the projects is
 /// expected to be a newly restored XML project).
 /// For example c:\TestLangProj.fwdata and c:\TestLangProj.fwdb would be equal.
 /// </summary>
 /// <param name="otherProjectId">The other project id.</param>
 /// ------------------------------------------------------------------------------------
 public bool IsSameLocalProject(ProjectId otherProjectId)
 {
     return(IsLocal && otherProjectId.IsLocal &&
            ProjectFolder.Equals(otherProjectId.ProjectFolder, StringComparison.InvariantCultureIgnoreCase) &&
            ProjectInfo.ProjectsAreSame(Name, otherProjectId.Name));
 }