diff --git a/src/Microsoft.Framework.PackageManager/List/AssemblyWalker.cs b/src/Microsoft.Framework.PackageManager/List/AssemblyWalker.cs index 1711c2907..2f8e00382 100644 --- a/src/Microsoft.Framework.PackageManager/List/AssemblyWalker.cs +++ b/src/Microsoft.Framework.PackageManager/List/AssemblyWalker.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -125,7 +126,7 @@ private IEnumerable GetAssemblyDependencies(string assemblyName) private bool VisitAssembly(string assemblyName, IEnumerable ancestors) { // determine if keep walking down the path - if (ancestors.Any(a => a == assemblyName)) + if (ancestors.Any(a => string.Equals(a, assemblyName, StringComparison.Ordinal))) { // break the reference loop return false;