c#visual studio,部署错误,但没有调试/构建等

时间:2014-11-06 13:55:33

标签: c# visual-studio-2013 windows-runtime windows-store-apps

当我尝试部署我的商店应用程序但是调试工作正常时,我收到了一堆奇怪的错误。

enter image description here

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;创建应用包

1 个答案:

答案 0 :(得分:2)

尝试在其他CPU架构上构建解决方案。您有解决方案,因为您的解决方案无法重建,因为您在Configuration Manager中发布了错误的CPU配置。