You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (Jira)" <ji...@apache.org> on 2021/02/10 16:52:00 UTC
[jira] [Updated] (IGNITE-12941) .NET: Support .NET 5
[ https://issues.apache.org/jira/browse/IGNITE-12941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Tupitsyn updated IGNITE-12941:
------------------------------------
Description:
.NET 5 is released. Breaking changes: https://blog.miguelbernard.com/net-5-the-breaking-changes-you-need-to-know-about/
* Run tests on .NET 5 on Windows and Linux
* Add nightly .NET TeamCity project (?)
* Check deployment scenarios
------------
*Self-contained single-file publish issue*
{code}
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'libcoreclr.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibcoreclr.so: cannot open shared object file: No such file or directory
at Apache.Ignite.Core.Impl.Unmanaged.Jni.DllLoader.NativeMethodsCore.dlopen(String filename, Int32 flags)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.DllLoader.Load(String dllPath)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.JvmDll.LoadDll(String filePath, String simpleName)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.JvmDll.Load(String configJvmDllPath, ILogger log)
at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
at Apache.Ignite.Core.Ignition.Start()
at IgniteNet5Test.Program.Main(String[] args)
{code}
See https://github.com/dotnet/runtime/issues/41859
h2. Workaround
{code}
NativeLibrary.SetDllImportResolver(
typeof(Ignition).Assembly,
(libraryName, _, _) => libraryName == "libcoreclr.so"
? (IntPtr) (-1)
: IntPtr.Zero);
{code}
was:
.NET 5 is released. Breaking changes: https://blog.miguelbernard.com/net-5-the-breaking-changes-you-need-to-know-about/
* Run tests on .NET 5 on Windows and Linux
* Add nightly .NET TeamCity project (?)
* Check deployment scenarios
------------
*Self-contained single-file publish issue*
{code}
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'libcoreclr.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibcoreclr.so: cannot open shared object file: No such file or directory
at Apache.Ignite.Core.Impl.Unmanaged.Jni.DllLoader.NativeMethodsCore.dlopen(String filename, Int32 flags)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.DllLoader.Load(String dllPath)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.JvmDll.LoadDll(String filePath, String simpleName)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.JvmDll.Load(String configJvmDllPath, ILogger log)
at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
at Apache.Ignite.Core.Ignition.Start()
at IgniteNet5Test.Program.Main(String[] args)
{code}
See https://github.com/dotnet/runtime/issues/41859
> .NET: Support .NET 5
> --------------------
>
> Key: IGNITE-12941
> URL: https://issues.apache.org/jira/browse/IGNITE-12941
> Project: Ignite
> Issue Type: New Feature
> Components: platforms
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Major
> Labels: .NET, newbie
>
> .NET 5 is released. Breaking changes: https://blog.miguelbernard.com/net-5-the-breaking-changes-you-need-to-know-about/
> * Run tests on .NET 5 on Windows and Linux
> * Add nightly .NET TeamCity project (?)
> * Check deployment scenarios
> ------------
> *Self-contained single-file publish issue*
> {code}
> Unhandled exception. System.DllNotFoundException: Unable to load shared library 'libcoreclr.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibcoreclr.so: cannot open shared object file: No such file or directory
> at Apache.Ignite.Core.Impl.Unmanaged.Jni.DllLoader.NativeMethodsCore.dlopen(String filename, Int32 flags)
> at Apache.Ignite.Core.Impl.Unmanaged.Jni.DllLoader.Load(String dllPath)
> at Apache.Ignite.Core.Impl.Unmanaged.Jni.JvmDll.LoadDll(String filePath, String simpleName)
> at Apache.Ignite.Core.Impl.Unmanaged.Jni.JvmDll.Load(String configJvmDllPath, ILogger log)
> at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
> at Apache.Ignite.Core.Ignition.Start()
> at IgniteNet5Test.Program.Main(String[] args)
> {code}
> See https://github.com/dotnet/runtime/issues/41859
> h2. Workaround
> {code}
> NativeLibrary.SetDllImportResolver(
> typeof(Ignition).Assembly,
> (libraryName, _, _) => libraryName == "libcoreclr.so"
> ? (IntPtr) (-1)
> : IntPtr.Zero);
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)