Yes it is possible to do copy ony deployments to a mono system providing all
of the bits you are using exist there.
dllimports to external code do however break this (obviously if the library
does not exist on the other platform). For this you generally end up with
coditional code "if windows, if mono etc". If you are using a platform
independent library you can also use DLLMap to handle this for you
http://www.mono-project.com/DllMap
Cheers,
Greg
> Is it possible to redistibute a .net app compiled with vs to linux without
> recompiling with say mon compiler?
[quoted text clipped - 11 lines]
> Is it possible to call methods from an external dll without using the
> dllimport attribute, something like GetProcAddress in the old days?
hB - 01 May 2006 05:44 GMT
Instead of using DLLImport attribute, Load the libraries at runtime by
the platform provided APIs to load the dynamic link libraries. So you
have all library information provided at runtime like path and name...
And wrap those apis in your class that can behave based on two or more
operating system platforms. (Also you can use different
api-loader-class which one is specific to the platform and they all
implement same interface. you can load specific class through
reflection as well).
I have no experience with DLLMap, but it might be a good idea to go on
with it..
---
hB