I have three dlls.
I have a project which call some functions of these through
[DllImport("my.dll")] .
When I run my program it doesn't find this dll on the emulator so through exceptions.
I want's to export and register dll in the emulator.
How Can I do that

How to export and register dll in the emulator
Yasir Imran
Add your custom DLL to your project and set it's properties to the following:
Build Action: Content
Copy to Output Directory: Copy if newer
Now when you initiate your build/debug from VS the DLL will get deployed automatically to the emulator.
Checkout MSDN article on Debugging an app with native and managed code: http://msdn2.microsoft.com/en-us/library/ms228818.aspx
Manav
Milzit
I know that.But I am debugging my application.
There is a my custom dll which I want's to copy and register to emulator.
But I don't know how could I do that
Mark Coleman
Since the DLL is not a .NET assembly you can not add it as a reference. You've to add it as an existing item.Right click on the solutions explorer and select add existing item. Navigate to your DLL and add to the project. Now change the properties of the DLL as per the earlier post.
Manav
enric vives
Matt Turk
Missing Method Exception is thrown when you're trying to invoke a method either through reflection or using p/invoke. Ensure that the assembly is present in your local folder where you're running your exe or is present in the environment path.
Manav
Shamdogg
Ok when I debugging my application I am getting missing method exception.
I find out that it is because the dll is not register.Should I have to register this dll on the emulator or my System from where i am testing
DragonC#
---------------------------
Microsoft Visual Studio
---------------------------
A reference to 'MyProj.dll' could not be added.
---------------------------
OK Help
---------------------------
This dll is in VC++
pst_grant