I'm trying to use SQlite-net-pcl to store some data. As I read from different posts, I have to create an interface service on my main project and then implementing from that service on my Android and iOS projects. The issue happens when I try to implement the interface on the Android or iOS project:
namespace DemoApplication.iOS { public class LocalFileHelperService : ILocalFileHelperService { } } Error CS0246 The type or namespace name 'ILocalFileHelperService' could not be found (are you missing a using directive or an assembly reference?)
But when I try to add the reference:
using DemoApplication.Services; I get the following error:
Error CS0234 The type or namespace name 'Services' does not exist in the namespace 'DemoApplication' (are you missing an assembly reference?)
Am I doing anything wrong? I remember that using another framework that was the correct form to implement services in Android and iOS platforms, but now in MvvmCross seems that is made different.
Does anyone knows how is the correct form to do it?
Thanks in advance.
EDIT:
I attach the interface definition.
namespace DemoApplication.Services { public interface ILocalFileHelperService { string GetLocalFilePath(string fileName); } }
ILocalFileHelperServiceexisting in the main core project, and that it is public access modifier type? Additionally, if you do a rebuild on your main project does the interface perhaps then show up in your platform projects?