[Mono-list] problem getting a .NET dll to work with mono

Davy Brion davy.brion@pandora.be
Thu, 7 Aug 2003 21:09:43 +0200


Hey guys,

i recently switched back to linux because i heard i should be able to do most 
of my C# development on linux with mono now.  So now i'm trying to get my 
stuff to work :)

I have this project that uses a closed-source .NET dll, and i'm hoping i can  
use the same DLL with mono.  I heard that it should be possible to use .NET 
DLL's compiled on windows in mono.  But i'm having problem getting my code to 
compile.

here's the output of the compiler:

bash-2.05b$ mcs ../DbrLib/*.cs *.cs -r:System.Windows.Forms.dll 
-r:System.Drawing -r:bin/OutlookBar.dll -r:System.Data.dll
FrmMain.cs(23) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarCategory'
FrmMain.cs(24) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarButton'
FrmMain.cs(25) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarButton'
FrmMain.cs(26) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarCategory'
FrmMain.cs(27) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarButton'
FrmMain.cs(28) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarButton'
FrmMain.cs(29) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarButton'
FrmMain.cs(30) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarButton'
FrmMain.cs(31) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBar'
FrmMain.cs(32) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarCategory'
FrmMain.cs(33) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarButton'
FrmMain.cs(49) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarButton'
FrmMain.cs(50) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarButton'
FrmMain.cs(383) error CS0117: `OutlookBar.OutlookBar' does not contain a 
definition for `OutlookBarButtonClickEventArgs'
Compilation failed: 14 error(s), 0 warnings

the same code compiles with Visual Studio .NET
am i trying to compile it wrong? or is it not possible yet to use those .NET 
DLLs compiled on windows with mono?  I'm using mono 0.25 btw

Just so you know, this OutlookBar component is basically a GUI component that 
looks and acts like the buttonpanel you can see in Outlook and Outlook 
Express.  If anyone knows of a similar control (preferably open source and 
using System.Windows.Forms) that works on both Linux and Windows, please let 
me know because then i'll probably just use that instead, unless i can get 
this DLL working.

Thanks in advance,
Davy Brion