diff --git a/build/dependencies.props b/build/dependencies.props
index b5f3763217..2708f9c713 100644
--- a/build/dependencies.props
+++ b/build/dependencies.props
@@ -4,10 +4,7 @@
2.1.10
2.1.10
-
4.5.2
-
- 2.1.1
@@ -35,6 +32,7 @@
2.1.1
2.1.1
2.1.1
+ 2.1.10
2.1.1
2.1.1
2.1.1
diff --git a/test/SharedFx.UnitTests/SharedFxTests.cs b/test/SharedFx.UnitTests/SharedFxTests.cs
index 7d0c222298..de57b07f70 100644
--- a/test/SharedFx.UnitTests/SharedFxTests.cs
+++ b/test/SharedFx.UnitTests/SharedFxTests.cs
@@ -65,7 +65,7 @@ namespace Microsoft.AspNetCore
var localAssemblyVersion = AssemblyName.GetAssemblyName(file).Version;
var dllName = Path.GetFileName(file);
Assert.Contains(dllName, nugetAssemblyVersions.Keys);
- Assert.InRange(localAssemblyVersion.CompareTo(nugetAssemblyVersions[dllName]), 0, int.MaxValue);
+ Assert.True(localAssemblyVersion >= nugetAssemblyVersions[dllName], $"Expected {dllName} ({localAssemblyVersion}) to have assembly version >= {nugetAssemblyVersions[dllName]}");
}
catch (BadImageFormatException) { }