Skip to content
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

v1 - Fixes #2598 - Run self-contained application on Linux #2607

Merged
merged 5 commits into from
May 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Terminal.Gui/ConsoleDrivers/CursesDriver/UnmanagedLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ static class Mono {
/// to avoid the dependency on libc-dev Linux.
/// </summary>
static class CoreCLR {
#if NET6_0
#if NET7_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)
Expand All @@ -266,7 +266,6 @@ 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);

Expand Down