Does anyone know how to specify a DLL specific to OS in Mono/.Net?
I have two DLLs, a linux_taxes.dll and windows_taxes.dll that reference managed code. (In reality they both have the same name) If I use the windows_taxes.dll it compiles fine in windows and if I use the linux_taxes.dll it compiles fine in linux. Since they have the same name (in reality) I only have one reference to taxes.dll and just manually overwrite the dlls depending which OS I am on. This is a pain, and I was wondering if there was a way to automate this DLL overwriting or even better point to a specific DLL when on Linux and point to another DLL when I am on Windows. I looked into Config DLL maps with code similar to this:
<dllmap os="linux" dll="taxes.dll" target="linux_taxes.dll"></dllmap>
<dllmap os="windows" dll="taxes.dll" target="windows_taxes.dll"></dllmap>
But this did not work and I think I might be heading in the wrong direction...
I was also thinking maybe I could make a custom target to copy over the correct DLLs from some subfolder to the bin but I am unsure of how to make targets specific for mono that would do this.
Any help would be appreciated. Thanks!