2
That’s the mistake I’m taking:
C: meu_caminho Packages Xamarin.Forms. 2.5.0.122203 build Portable-win+net45+wp80+win81+wpa81 Xamarin.Forms.Build.Tasks.dll. Confirm that the statement is correct, if Assembly and all your dependencies are available and if the task contains a public class implementing Microsoft.Build.Framework.Itask.
Below the source code of xaml.Cs
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class LoginPage : ContentPage
{
public LoginPage ()
{
InitializeComponent ();
}
public void Login_Clicked(object sender, EventArgs e)
{
LoginService svc = new LoginService();
LoginRS res = svc.Login(txtUsuario.Text, txtSenha.Text);
if (res != null && res.Success )
{
App.LooggedUser = res;
Application.Current.MainPage = new MainPage();
}
else if(res != null && ! res.Success)
{
lblErroLogin.Text = res.Exception;
}
else
{
lblErroLogin.Text = "Não foi possível realizar o Login, por favor verifique sua conexão com a Internet";
}
}
}
Before was giving error below in Initializecomponent
Unhandled Exception: System.Typeloadexception: Could not resolve type with token 01000043 (from typeref, class/Assembly Xamarin.Forms.Internals.Resourceloader, Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, Publickeytoken=null) occurred
How do I solve this problem?