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 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(
IEnumerable<PackageInfo> packages,
CoherenceVerifyBehavior verifyBehavior)
@ -95,10 +103,8 @@ namespace CoherenceBuild
return;
}
if (string.Equals(packageInfo.Identity.Id, "Microsoft.VisualStudio.Web.BrowserLink", StringComparison.OrdinalIgnoreCase) ||
string.Equals(packageInfo.Identity.Id, "Microsoft.VisualStudio.Web.BrowserLink.Loader", StringComparison.OrdinalIgnoreCase))
if (PackagesToSkipVerification.Contains(packageInfo.Identity.Id))
{
// Skip verification for BrowserLink
return;
}
}