jharr100
jharr100

Reputation: 1469

DLL not found when using .net dll in monotouch

I am trying to using the star micronics sdk for a bluetooth printer in my ipad application using monotouch - I read somewhere that you may be able to reference .net dlls inside of your mono touch application - so it was my attempt to do that...one dll was added without any issue - however a second dll says that it is not a valid .net assembly...so I run my program without the second dll and it builds and when I make a call to the star micronics code a DLL is not found exception is thrown...is there anyway to go about adding this second dll to my monotouch project...

I'm using the sdk from here.

Edit: If im not mistaken my application does not need to reference the second dll...however the one I added needs to reference that one - would I still need to add a reference to the second ell?

Upvotes: 0

Views: 474

Answers (1)

poupou
poupou

Reputation: 43553

If the second .dll is not a .NET assembly then it won't work with Xamarin.iOS, i.e. a native library x86 library compiled for Windows won't work on OSX (simulator) or on iOS devices (ARM CPUs).

In this case you should use the iOS SDK (from your link) and create (or find an existing) binding assembly for it to use inside your application.

Upvotes: 2

Related Questions