in src/Microsoft.NuGet.Build.Tasks/ResolveNuGetPackageAssets.cs [450:465]
private bool TryGetFile(string packageName, string packageVersion, string packageRelativePath, string file, out string path)
{
if (IsFileValid(file, "C#", "VB"))
{
path = GetPath(packageName, packageVersion, packageRelativePath, file);
return true;
}
else if (IsFileValid(file, "VB", "C#"))
{
path = GetPath(packageName, packageVersion, packageRelativePath, file);
return true;
}
path = null;
return false;
}