Xamarin Support

0 votes
asked Aug 20 by Martin Martinsson (190 points)

Hello,

can i directly reference i.e. Rebex.Ftp to Xamarin Forms or do i need a dependency injection mechanism to make the funtionality acessable through the Android or iOS main host application?

Xamarin Forms live in a extra PCL you already know for sure.
What is better? Directly reference Rebex.Ftp in the Xamarin Forms PCL or abstract through dependency injection, living in the host app?

Regards
Martin

Applies to: Rebex SFTP

1 Answer

0 votes
answered Aug 20 by Lukas Pokorny (113,730 points)
selected Aug 20 by Martin Martinsson
 
Best answer

All Rebex components support .NET Standard 2.0, which is supported by all Xamarin platforms, so there is no need to use any kind of dependency injection.

Just reference Rebex assemblies in "netstandard2.0" from your Xamarin application, or add a reference to Rebex.Ftp on NuGet.org, and it should work fine.

Note: On Xamarin.Android, it might be useful to reference Rebex.Common.Native and enable native extensions.

...