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

System.EntryPointNotFoundException on Ubuntu with Mono .NET-Framework #41

Open
dlitfin opened this issue Apr 4, 2017 · 2 comments
Open

Comments

@dlitfin
Copy link

dlitfin commented Apr 4, 2017

Code from Lawo.EmberPlusSharp.Model Namespace Tutorial on Github, worked fine on Windows using .NET SDK 4.5. On Ubuntu as well as macOS in combination with the mono framework an EntryPointNotFoundException occurs. Complete error message in the attached file.
error.txt

@andreashuber-lawo
Copy link
Contributor

This is due to the fact that the current thread id is determined by calling a native method, which is not available on other platforms. I won't have time to look at this before next week. If you want to fix it yourself, you could try to replace GetCurrentThreadId() with Thread.CurrentThread.ManagedThreadId. If you do, please let me know whether that works, thanks!

andreashuber-lawo added a commit that referenced this issue Apr 11, 2017
andreashuber-lawo added a commit that referenced this issue Apr 11, 2017
References #41
@andreashuber-lawo
Copy link
Contributor

Unfortunately, there does not seem to be a clean way to fix this right now. Apparently, there's no way to use Thread.CurrentThread.ManagedThreadId in a PCL. I then converted the whole solution to .NETStandard 1.4. While that seems to work code-wise, now the documentation build is broken, because SHFB does not support .NETStandard projects yet. Suggestions to work around the issue by referencing the assembly- and XML-files directly did not work.

Therefore, the only thing I can suggest right now is to try to compile commit 689590d and see whether that works.

Once SHFB supports .NETStandard projects, I will revisit this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants