Adding Native Library(c++) project to Android app for debugging

I have a Visual C++ dynamic shared library (.so) project created using Xamarin.
I am also creating a Xamarin.Android app in the same solution and trying to add the dynamic shared library project as a reference, so that I can debug into the c++ code.
I am doing this by selecting 'Add Reference' on the Android app project and bringing up the 'Reference Manager'.
I see the dynamic library, check the box and hit OK.
The library gets added to the list of references with a yellow triangle indicating there is some problem. When I select it, I do see that the path property is empty.

I go ahead and build the project and I see in the Output window the following:

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1550,2): warning : Could not find file 'c:\users\\documents\visual studio 2015\Projects\MySharedLibrary\x86\Debug\libMySharedLibrary.dll'.

No wonder the error, it is looking for the library with "dll" extension instead of the "so" extension.

What do I have to do to make the Android app reference the dynamic shared library(.so) for debugging?

-Thanks>

Sign In or Register to comment.