Skip to content

Commit 6f82e63

Browse files
committed
C#: Prefer assembly version over netcore version in conflict resolution
1 parent 44be7df commit 6f82e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/AssemblyCacheExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public static IOrderedEnumerable<AssemblyInfo> OrderAssemblyInfosByPreference(th
2121
: assemblies.OrderBy(initialOrdering);
2222

2323
return ordered
24-
.ThenBy(info => info.NetCoreVersion ?? emptyVersion)
2524
.ThenBy(info => info.Version ?? emptyVersion)
25+
.ThenBy(info => info.NetCoreVersion ?? emptyVersion)
2626
.ThenBy(info => info.Filename);
2727
}
2828
}

0 commit comments

Comments
 (0)