Merge pull request #3413 from sokket/cycle
Adding check for self-referencing projects
This commit is contained in:
commit
30ba1a1a61
6 changed files with 47 additions and 1 deletions
|
@ -43,7 +43,7 @@ namespace Microsoft.DotNet.Tools.Build
|
|||
foreach (var dependency in project.Dependencies)
|
||||
{
|
||||
LibraryDescription libraryDescription;
|
||||
if (lookup.TryGetValue(dependency.Name, out libraryDescription))
|
||||
if ((lookup.TryGetValue(dependency.Name, out libraryDescription)) && (!libraryDescription.Identity.Name.Equals(project.Identity.Name)))
|
||||
{
|
||||
if (libraryDescription.Resolved && libraryDescription.Identity.Type.Equals(LibraryType.Project))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue