Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/332.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
c#visual studio,部署错误,但调试/构建错误等_C#_Visual Studio 2013_Windows Runtime_Windows Store Apps - Fatal编程技术网

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

c#visual studio,部署错误,但调试/构建错误等,c#,visual-studio-2013,windows-runtime,windows-store-apps,C#,Visual Studio 2013,Windows Runtime,Windows Store Apps,当我尝试部署我的商店应用程序时,我遇到了一系列奇怪的错误,但调试工作正常 VS i抱怨缺少事件侦听器,但它们存在于代码隐藏中: LoginView.xaml using System; using System.Diagnostics; using Windows.System; using Cirrious.MvvmCross.WindowsStore.Views; using MobileDocs.Core.ViewModels; namespace MobileDocs.Store.

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

VS i抱怨缺少事件侦听器,但它们存在于代码隐藏中:

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);                
                }
            }
        }
    }
}
使用系统;
使用系统诊断;
使用Windows.System;
使用cirries.MvvmCross.WindowsStore.Views;
使用MobileDocs.Core.ViewModels;
命名空间MobileDocs.Store.Views
{
/// 
///可以单独使用或在框架内导航到的空页。
/// 
公共密封部分类LoginView:MvxStorePage
{
公共登录视图()
{
this.InitializeComponent();
}
私有无效密码\u KeyDown(对象发送方,Windows.UI.Xaml.Input.KeyRoutedEventArgs e)
{
if(e.Key==VirtualKey.Enter&&e.KeyStatus.RepeatCount==1)
{
尝试
{
LoginViewModel dc=(LoginViewModel)this.DataContext;
if(dc.LoginCommand.CanExecute(null))
{
dc.LoginCommand.Execute(null);
}
}
捕获(例外情况除外)
{
Debug.WriteLine(例如消息);
}
}
}
}
}

Clean/Build不会给我任何错误,只要我通过project->store->create app packages,尝试在其他CPU架构上构建您的解决方案。您有例外,因为您的解决方案无法重建,因为您在Configuration manager中发布的CPU配置错误