Add EF tool packages to coherence verification skip list
This commit is contained in:
Родитель
9ecef62cdc
Коммит
6a2238d114
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче