EasyCMS
EasyCMS copied to clipboard
It will be reporting an freesql error when launching the EasyCMS app with dotnet-sdk-9.0.100-preview.3.24160.1
Description When we are launching the app, it will be reporting an freesql error: System.TypeInitializationException: The type initializer for 'FreeSql.Internal.Utils' threw an exception. This is an freesql issue, please refer to https://github.com/dotnetcore/FreeSql/issues/1748, and in the meantime, file this issue to give you a heads-up in CastIt side.
Verify Scenarios: 1). Windows 10 21H2 AMD64 + dotnet-sdk-8.0.203: Pass 2). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.2.24129.7: Pass 3). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.3.24160.1: Fail
Steps To Reproduce:
- Clone code from https://github.com/yushuo1990/EasyCMS
- Open and build Atlass.Framework.Web by VS.
- Change runtime in Atlass.Framework.Web.runtimeconfig.json:
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "9.0.0-preview.3.24157.12"
},
{
"name": "Microsoft.AspNetCore.App",
"version": "9.0.0-preview.3.24157.5"
}
]
4.Launching Atlass.Framework.Web.
Expected Result: App running without error. Actual Result: Show error:
System.TypeInitializationException: The type initializer for 'FreeSql.Internal.Utils' threw an exception.
---> System.Reflection.AmbiguousMatchException: Ambiguous match found for 'System.TimeSpan System.TimeSpan FromSeconds(Int64)'.