From 7ffd4b8ab4d40b5416b394f8841a5763d97e7e68 Mon Sep 17 00:00:00 2001 From: BDisp Date: Sun, 7 May 2023 06:19:06 +0100 Subject: [PATCH] Fixes #2598. Run self-contained application on Linux. (#2600) * Fixes #2598. Run self-contained application on Linux. * Remove directive allowing always compile for single-file if PublishSingleFile is true. --- Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs b/Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs index cde433744..67dbe236f 100644 --- a/Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs +++ b/Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs @@ -256,7 +256,6 @@ namespace Unix.Terminal { /// to avoid the dependency on libc-dev Linux. /// static class CoreCLR { -#if NET6_0 // Custom resolver to support true single-file apps // (those which run directly from bundle; in-memory). // -1 on Unix means self-referencing binary (libcoreclr.so) @@ -265,7 +264,6 @@ namespace Unix.Terminal { static CoreCLR() => NativeLibrary.SetDllImportResolver(typeof(CoreCLR).Assembly, (string libraryName, Assembly assembly, DllImportSearchPath? searchPath) => libraryName == "libcoreclr.so" ? (IntPtr)(-1) : IntPtr.Zero); -#endif [DllImport ("libcoreclr.so")] internal static extern IntPtr dlopen (string filename, int flags);