Skip to content

dotnet-publish forgets System.Native.so on Ubuntu 14.04 #4581

@andyleejordan

Description

@andyleejordan

Clone https://github.com/andschwa/System.Native.so

Build with ./build.sh on an Ubuntu 14.04 system.

While dotnet-run works, dotnet-publish forgets to include System.Native.so, and thus fails.

Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'System.Native': The specified module could not be found.
 (Exception from HRESULT: 0x8007007E)
   at Interop.Sys.Stat(String path, FileStatus& output)
   at System.IO.UnixFileSystem.DirectoryExists(String fullPath)
   at System.IO.Directory.Exists(String path)
   at Program.Main()
Aborted (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions