... even if SpecificVersion is false. There is no reason to prefer any
mismatching version when SpecificVersion=false.
That behavior caused monodevelop build failures because of incorrectly-
resolved gtk# packages. After this fix, this issue goes away.
https://github.com/mono/monodevelop/blob/
2436ad1874694ec811871dacf9a659a79b5fad0d/README.md#known-problems
{
PackageAssemblyInfo pkg = null;
- if (specific_version) {
- pkg = PcCache.GetAssemblyLocation (reference.ItemSpec);
- } else {
+ pkg = PcCache.GetAssemblyLocation (reference.ItemSpec);
+ if (pkg == null && !specific_version) {
// if not specific version, then just match simple name
string name = reference.ItemSpec;
if (name.IndexOf (',') > 0)