I’m using a 3rd party C# library that is delivered as a .dll which references a .netmodule. I dropped both into my project and my script which uses the library works fine when played from the Editor but it doesn’t load from a build. I found the .dll in the “Managed” folder of my build but the .netmodule is missing. If I manually copy it in everything works fine. What’s the right way to get it included in the build?
Unity only recognizes certain things as assets. If you need something that Unity can’t add to your build then you can set up a post process routine to copy for you.
Take a look at PostProcessBuildAttribute which will let you define a method that will be called after a build. There you can use io functions to copy your file.