【问题标题】:c# visual studio, errors on deploy but not on debug/build etcc#visual studio,部署错误但调试/构建等错误
【发布时间】:2014-11-06 22:29:32
【问题描述】:

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

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);                
                }
            }
        }
    }
}

清理/构建没有给我任何错误,就在 o 完成项目 -> 商店 -> 创建应用程序包时

【问题讨论】:

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


    【解决方案1】:

    尝试在其他 CPU 架构上构建您的解决方案。您有例外,因为您的解决方案无法重建,因为您在配置管理器中发布的 CPU 配置错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-09-18
      • 1970-01-01
      • 2016-07-13
      • 1970-01-01
      • 1970-01-01
      • 2017-09-14
      相关资源
      最近更新 更多