Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Using Xamarin.Mobile in a cross-platform project's shared code

$
0
0

I am building my first Xamarin-based app with both Android and iOS versions. I have set up App.Base, App.Android and App.iOS projects in my solution.

The App.Base files are currently shared in the platform-specific projects via manual file linking, but I would like to move to the shared code being built in a PCL and referenced in the platform-specific projects when Xamarin support for that is fully baked. The App.Base project is currently set up as a C# library project.

I would like to add the Xamarin.Mobile component to my solution and utilize it in the App.Base shared code as well as in the App.Android and App.iOS projects. I can't do this because the App.Base project doesn't contain a "Components" folder like the platform-specific projects do. I don't recall deleting the folder from the project, but it is possible that I did.

Should I be able to use the Xamarin.Mobile component (or other components from the Xamarin Component Store) in code that is shared across platform-specific projects?

Thanks!

Tommy


Viewing all articles
Browse latest Browse all 204402

Trending Articles