Skip to content

Commit a76f2fd

Browse files
Fix exception when multiple projects reference the same .vcxitems project (#445)
1 parent 726196e commit a76f2fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.VisualStudio.SlnGen/ProjectLoading/ProjectGraphProjectLoader.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void LoadProjects(IEnumerable<string> projectPaths, ProjectCollection pro
6464
_ = CreateProject(projectPath.FullName, globalProperties, projectCollection);
6565
}
6666
}
67-
else if (importPath.EndsWith(ProjectFileExtensions.VcxItems))
67+
else if (importPath.EndsWith(ProjectFileExtensions.VcxItems) && !LoadedProjects.ContainsKey(importPath))
6868
{
6969
_ = CreateProject(importPath, globalProperties, projectCollection);
7070
}

0 commit comments

Comments
 (0)