private static bool ExistsInSolution(VsSolution solution, string targetPath) { return((from p in solution.Projects where PathUtility.PathsEquals(p.AbsolutePath, targetPath) select p).Any()); }