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

Incompatible with NET5.0 #195

Closed
lmnx90 opened this issue Oct 22, 2021 · 1 comment
Closed

Incompatible with NET5.0 #195

lmnx90 opened this issue Oct 22, 2021 · 1 comment

Comments

@lmnx90
Copy link

lmnx90 commented Oct 22, 2021

I have a C# library, and it's target framework is .NET 5.0 . Also, with VS 16.11.5.

The problem I met with is I can't call the public static method which is tagged by "[DllExport]" from another C# application. It will throw a trace "cant not found method xxxx.xxx.function". If I calling the lib from native C++ , it comes to crashed.

And everything is ok when I change the lib's target frame from .NET5.0 to Framework 4.6.1.
So is there any incompatible thing happened to .NET5.0?

I also tried the simplest "int _add(int, int)" example, unfortunately the result is the same as above case.

@3F
Copy link
Owner

3F commented Oct 23, 2021

Hello,

I can't call the public static method which is tagged by "[DllExport]" from another C# application.

Duplicate of #94

If I calling the lib from native C++ , it comes to crashed.

Depends on the specific case but this is duplicate of #132 and/or #193

Please read here #193 (comment)

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