Reputation: 14625
I'm getting a bunch of strange errors when i try to deploy my store application but debug works fine.
VS i complaining about missing event listeners but they exist in code behind:
LoginView.xaml
using System;
using System.Diagnostics;
using Windows.System;
using Cirrious.MvvmCross.WindowsStore.Views;
using MobileDocs.Core.ViewModels;
namespace MobileDocs.Store.Views
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class LoginView : MvxStorePage
{
public LoginView()
{
this.InitializeComponent();
}
private void Password_KeyDown(object sender, Windows.UI.Xaml.Input.KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Enter && e.KeyStatus.RepeatCount == 1)
{
try
{
LoginViewModel dc = (LoginViewModel)this.DataContext;
if (dc.LoginCommand.CanExecute(null))
{
dc.LoginCommand.Execute(null);
}
}
catch (Exception ex)
{
Debug.WriteLine(ex.Message);
}
}
}
}
}
Clean/Build gives me no errors, just when o go through project -> store -> create app packages
Upvotes: 0
Views: 201
Reputation: 938
Try to build your solution on other CPU architectures. You have exeptions because your solution cant rebuild, because you have wrong CPU configurations for release in Configuration manager.
Upvotes: 2