in src/Tasks/Microsoft.NET.Build.Extensions.Tasks/GetDependsOnNETStandard.cs [42:66]
private bool AnyReferenceDependsOnNETStandard()
{
foreach (var reference in References)
{
var referenceSourcePath = ItemUtilities.GetSourcePath(reference);
if (referenceSourcePath != null && File.Exists(referenceSourcePath))
{
try
{
if (GetFileDependsOnNETStandard(referenceSourcePath))
{
return true;
}
}
catch (Exception e) when (IsReferenceException(e))
{
// ResolveAssemblyReference treats all of these exceptions as warnings so we'll do the same
Log.LogWarning(Strings.GetDependsOnNETStandardFailedWithException, e.Message, referenceSourcePath);
}
}
}
return false;
}