-
Notifications
You must be signed in to change notification settings - Fork 76
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.DllNotFoundException: Unable to load DLL 'raylib' #55
Comments
The library only needs to be copied if you are installing manually so the readme is fine. If you installed the nuget package and it fails to load raylib then that is a bug. |
its a bug then |
I have also installed the nugget package, and have this problem. |
@Shadowblitz16 Are you using the NuGet package? If you are using the NuGet package then this is a duplicate of #43 Where did you put the native library? |
@9ParsonsB I put it in the root of the project and then marked its as copy to output 'always' |
@Shadowblitz16 Can you see raylib.dll in the output directory? (Generally in |
I'm pretty sure it was in |
@9ParsonsB It seems 3.1.8-pre and 3.1.8-pre2 do not include the native runtimes as expected meaning users could not find the native library when they install the package. I did not find the issue as I had a system version installed which it found instead. I am surprised I did not find this sooner. Clearly more testing should of been done to prevent this. Currently github actions only builds the C# code. It does not verify the native libraries exist on the target platforms. |
I updated the README install command to use the version 3.1.5 which is the latest stable release. There was a version for 3.1.6 but that was unlisted due to bugs. Running |
The instructions provided only work for a .net core project. |
I got this error:
I am using Apple Silicon (osx-arm64). |
@ayousuf23 |
The nuget package for Raylib-cs uses netstandard2.1 and the runtimes for the supported platforms should load as expected. |
Sorry to post late, but I am also getting this issue, was a solution found? |
@drum445 Please provide more details on your setup & problem (Platform, architecture, raylib version, error message, etc.) or join the raylib discord server (raylib-cs channel) for support |
this needs to be fixed.
I followed the instructions in the readme and it doesn't work.
If we need to copy the native library to the root of the project it should say so it the readme's nuget section
The text was updated successfully, but these errors were encountered: