-
-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DotNet 8.0 Support #443
Conversation
BroMarduk
commented
Dec 6, 2023
- Added DotNet 8.0 Libraries
- Rewrote some functions to support previous versions of frameworks for Utilites (support back to NetStandard2.0)
@@ -1,4 +1,6 @@ | |||
using System.Collections; | |||
#if NET6_0_OR_GREATER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This utility will not run with .NetStandard 2.0 without more fixes so excluding it from utilities for now.
@@ -153,7 +153,7 @@ public static List<FunctionDefinition> GetFunctionDefinitions(Type type) | |||
throw new InvalidFunctionCallException($"Method '{functionCall.Name}' on type '{obj.GetType()}' not found"); | |||
} | |||
|
|||
if (!methodInfo.ReturnType.IsAssignableTo(typeof(T))) | |||
if (!typeof(T).IsAssignableFrom(methodInfo.ReturnType)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IsAssignableTo not supported in .NetStandard 2.0 so reversed it to IsAssignableFrom for support.
I have reverted the changes in the utilization library. The utilization library does not support, and will not support, legacy versions, including .NET 6 and .NET 7. |