Remove assembly version checks from resolver

Not sure how this version check slipped in. It's not present in upstream
cecil code or the disassembled code from our current copy of
mono.cecil.dll.

Fixes #710
This commit is contained in:
Fraser Waters 2018-01-14 19:07:01 +00:00 committed by Jarl Gullberg
parent 1e2af5e648
commit f505808c8b

View file

@ -93,11 +93,7 @@ namespace OpenTK.Rewrite
continue;
try
{
var assembly = GetAssembly(file, parameters);
if (assembly.Name.Version == name.Version || IsZero(name.Version))
{
return assembly;
}
return GetAssembly(file, parameters);
}
catch (System.BadImageFormatException)
{
@ -248,11 +244,7 @@ namespace OpenTK.Rewrite
var file = GetAssemblyFile(reference, string.Empty, gac_path);
if (File.Exists(file))
{
var assembly = GetAssembly(file, parameters);
if (assembly.Name.Version == reference.Version || IsZero(reference.Version))
{
return assembly;
}
return GetAssembly(file, parameters);
}
}
@ -272,11 +264,7 @@ namespace OpenTK.Rewrite
var file = GetAssemblyFile(reference, prefixes[i], gac);
if (Directory.Exists(gac) && File.Exists(file))
{
var assembly = GetAssembly(file, parameters);
if (assembly.Name.Version == reference.Version || IsZero(reference.Version))
{
return assembly;
}
return GetAssembly(file, parameters);
}
}
}