diff --git a/src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs b/src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs
index 52192e32..f14013a6 100644
--- a/src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs
+++ b/src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs
@@ -135,31 +135,6 @@ internal static string NavigationPropertyPath(this ODataPath path, string naviga
return navigationPropertyName == null ? value : $"{value}/{navigationPropertyName}";
}
- ///
- /// Attempts to add the specified key and value to the dictionary.
- ///
- /// The type of the keys in the dictionary
- /// The type of the values in the dictionary
- /// A dictionary with keys of type TKey and values of type TValue.
- /// The key of the element to add.
- /// The value of the element to add.
- /// true when the key and value are successfully added to the dictionary;
- /// false when the dictionary already contains the specified key,
- /// in which case nothing gets added.
- /// dictionary is null.
- internal static bool TryAdd(this IDictionary dictionary,
- TKey key, TValue value)
- {
- CheckArgumentNull(dictionary, nameof(dictionary));
-
- if (!dictionary.ContainsKey(key))
- {
- dictionary.Add(key, value);
- return true;
- }
- return false;
- }
-
///
/// Adds a mapping of custom extension values against custom attribute values for a given element to the provided
/// extensions object.
diff --git a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj
index ae93400d..07b56d42 100644
--- a/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj
+++ b/src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj
@@ -12,7 +12,7 @@
Microsoft
Microsoft Open API OData Reader
Microsoft.OpenApi.OData
- netstandard2.0
+ net8
Microsoft.OpenApi.OData
true
1.6.8