Yortw / Yort.Otp

A portable .Net class library for creating onetime passwords (based on rfc4226 - https://tools.ietf.org/html/rfc4226 and rfc6238 - https://tools.ietf.org/html/rfc6238)

Home Page:http://yortw.github.io/Yort.Otp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using in Xamarin Forms

ruisilva450 opened this issue · comments

commented

Hi,
I'm trying to get this library to work on an Xamarin Forms solution (targeting Android, iOS and UWP), but everytime I try OnetimePasswordSecret.FromAscii("1234567890") I get this error:

This assembly should never be loaded at runtime, and should only be referenced from other portable 
class libraries. Please ensure your application references a platform specific assembly.
  at Yort.Otp.ExceptionHelper.ThrowYoureDoingItWrong () ...

Aaahh I saw what you did there 👍
However I didn't found a way to do it right :)

commented

Nevermind, I forgot to load the library in every platform project. Maybe you should provide some more information and probably say that you support Xamarin.Forms