0 votes
by (750 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
by (147k points)
selected by
 
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.

...