I want to make portable app that uses the NAudio
dll. I put the DLL files into Resources and tried this:
My.Computer.FileSystem.WriteAllBytes("\NAudio.dll", My.Resources.NAudio, True)
When I run the program (as an exe, not in the debugger), I get this error:
I tried DLLimport, no luck. How can I fix this?
CodePudding user response:
I solved by using ILMerge
Worked perfectly.
Also don't need to extract :)