Add EF tool packages to coherence verification skip list

This commit is contained in:
Pranav K 2016-10-17 16:15:44 -07:00
Родитель 9ecef62cdc
Коммит 6a2238d114
1 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -11,6 +11,14 @@ namespace CoherenceBuild
private readonly Dictionary<string, PackageInfo> _packageLookup; private readonly Dictionary<string, PackageInfo> _packageLookup;
private readonly CoherenceVerifyBehavior _verifyBehavior; private readonly CoherenceVerifyBehavior _verifyBehavior;
private readonly HashSet<string> PackagesToSkipVerification = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{
"Microsoft.VisualStudio.Web.BrowserLink",
"Microsoft.VisualStudio.Web.BrowserLink.Loader",
"Microsoft.EntityFrameworkCore.Tools",
"Microsoft.EntityFrameworkCore.Tools.DotNet",
};
public CoherenceVerifier( public CoherenceVerifier(
IEnumerable<PackageInfo> packages, IEnumerable<PackageInfo> packages,
CoherenceVerifyBehavior verifyBehavior) CoherenceVerifyBehavior verifyBehavior)
@ -95,10 +103,8 @@ namespace CoherenceBuild
return; return;
} }
if (string.Equals(packageInfo.Identity.Id, "Microsoft.VisualStudio.Web.BrowserLink", StringComparison.OrdinalIgnoreCase) || if (PackagesToSkipVerification.Contains(packageInfo.Identity.Id))
string.Equals(packageInfo.Identity.Id, "Microsoft.VisualStudio.Web.BrowserLink.Loader", StringComparison.OrdinalIgnoreCase))
{ {
// Skip verification for BrowserLink
return; return;
} }
} }