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

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

Closed
andyleejordan opened this issue Dec 15, 2015 · 3 comments
Closed

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

andyleejordan opened this issue Dec 15, 2015 · 3 comments

Comments

@andyleejordan
Copy link
Member

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)
@andyleejordan
Copy link
Member Author

@piotrpMSFT @anurse Any clue on this? It's quite annoying to have to manually deploy (yet another) patch to my publish folder. Or is there an alternative to dotnet-publish that will give me a flat list of all my dependencies?

@andyleejordan
Copy link
Member Author

The package runtime.ubuntu.14.04-x64.runtime.native.system pulls in the System.Native.so that I need to use, but I can't find the correct package to depend on that would depend on this in a platform-agnostic way. Microsoft.NETCore.Runtime.Native didn't do it.

For what it's worth, by directly depending on runtime.ubuntu.14.04-x64.runtime.native.system, the System.Native.so gets published.

/cc @brthor

@andyleejordan
Copy link
Member Author

Thanks @brthor: this is better solved by depending on "NETStandard.Library": "1.0.0-rc2-23616" (which should pull in, but doesn't: "Microsoft.NETCore.Platforms": "1.0.1-rc2-23616").

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
rainersigwald pushed a commit that referenced this issue Jul 20, 2020
…0200520.3 (#4581)

Microsoft.Build.Localization , Microsoft.Build
 From Version 16.7.0-preview-20224-01 -> To Version 16.7.0-preview-20270-03

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant