当我尝试部署我的商店应用程序但是调试工作正常时,我收到了一堆奇怪的错误。
VS我抱怨缺少事件监听器,但它们存在于代码背后:
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);
}
}
}
}
}
清洁/构建不会给我带来任何错误,只需要通过项目 - &gt;商店 - &gt;创建应用包
答案 0 :(得分:2)
尝试在其他CPU架构上构建解决方案。您有解决方案,因为您的解决方案无法重建,因为您在Configuration Manager中发布了错误的CPU配置。