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

Support to MAUI #412

Open
ElegantCatterpillar opened this issue Aug 24, 2024 · 2 comments
Open

Support to MAUI #412

ElegantCatterpillar opened this issue Aug 24, 2024 · 2 comments

Comments

@ElegantCatterpillar
Copy link

Im trying to used in MAUI and get this error:

System.TypeLoadException: Unknown platform
at libplctag.NativeImport.LibraryExtractor.GetAppropriateLibraryInfo() in //src/libplctag.NativeImport/LibraryExtractor.cs:line 90
at libplctag.NativeImport.LibraryExtractor.ExtractAppropriateLibraryToDirectory(String outputDirectory) in /
/src/libplctag.NativeImport/LibraryExtractor.cs:line 43
at libplctag.NativeImport.LibraryExtractor.Init(Boolean forceExtract) in //src/libplctag.NativeImport/LibraryExtractor.cs:line 25
at libplctag.NativeImport.plctag.ExtractLibraryIfRequired() in /
/src/libplctag.NativeImport/plctag.cs:line 59
at libplctag.NativeImport.plctag.plc_tag_create_ex(String lpString, callback_func_ex func, IntPtr userdata, Int32 timeout) in //src/libplctag.NativeImport/plctag.cs:line 94
at libplctag.NativeTag.plc_tag_create_ex(String lpString, callback_func_ex func, IntPtr userdata, Int32 timeout) in /
/src/libplctag/NativeTag.cs:line 20
at libplctag.NativeTagWrapper.InitializeAsync(CancellationToken token) in //src/libplctag/NativeTagWrapper.cs:line 406
at libplctag.Tag`2.d__46[[libplctag.DataTypes.BoolPlcMapper, libplctag, Version=1.5.2.0, Culture=neutral, PublicKeyToken=null],[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() in /
/src/libplctag/TagOfT.cs:line 169

@timyhac
Copy link
Collaborator

timyhac commented Aug 24, 2024

It works on my machine - if I create a new MAUI app and just run it will all default settings, it works fine 😛

But in all seriousness there is a lot more detail that you could be adding.
MAUI is a cross-platform framework so I could take a guess that you are running this on something other than windows, macOS or linux which are the version of libplctag core that are bundled with libplctag.NET.

Please see the CONTRIBUTING guidelines for additional detail to add.

@ElegantCatterpillar
Copy link
Author

I am trying to use it on Android, but I get an error from the library that it cannot Extract the library, specifically the error I get is the one at the top which mentions that it does not recognize the platform it is running on.

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

2 participants