SocketCANSharp icon indicating copy to clipboard operation
SocketCANSharp copied to clipboard

Run on window

Open liushanke opened this issue 1 year ago • 1 comments

I run test the project on window.There is an error:DllNotFoundException: Unable to load DLL 'libc' or one of its dependencies.Otherwise,I want to kown if SocketCANSharp.dll can been used to CAN protocol port communication.

liushanke avatar Apr 28 '24 13:04 liushanke

I want to kown if SocketCANSharp.dll can been used to CAN protocol port communication on window OS.

liushanke avatar Apr 28 '24 13:04 liushanke

I will test within the next week to verify running conditions on Windows OS.

derek-will avatar Aug 26 '24 22:08 derek-will

Update: I have a Windows PC partially set up. Will provide verification soon.

derek-will avatar Sep 09 '24 03:09 derek-will

Yes, confirmed SocketCANSharp runs on Windows via WSL2. You will need to build and run your own custom kernel with CAN support enabled and then install dotnet in your WSL2 instance. It is not too difficult to do. I found a few tutorials/instructions online for enabling SocketCAN on WSL2 which is the only significant hurdle. I tested by running some of the example apps from this repo and they worked without issue.

I will provide my instructions and update the main README to mention that you can run SocketCANSharp on Windows via WSL.

derek-will avatar Sep 19 '24 03:09 derek-will