This repository was archived by the owner on Jul 13, 2024. It is now read-only.
  
  
  
  
  
Description
Raylib-csTo call a native library DllImport attribute is used. This attribute expect a name of the library, however the name "raylib" from Raylib-CS doesn't work, the web page fails with:
dotnet.js:2167 System.DllNotFoundException: raylib
 
I found that unexpectedly the "lib" prefix is required, even though DllImport's name resolution should be able to handle the prefix just fine. The only official information I found is from (Mono docs)[https://www.mono-project.com/docs/advanced/pinvoke/#library-names]) though.
So instead of "raylib, "libraylib is used in the code.
        /// <summary>
        /// Used by DllImport to load the native library
        /// </summary>
        public const string nativeLibName = "raylib";
 
This is quite weird behavior and it would require some workarounds, so preferably we need to understand what's going on.