Smobiler上海石磨_.NET移动开发平台

标题: 关于Failled to emit module 'SmobilerStudy' [打印本页]

作者: pdcboy    时间: 2019-4-19 22:05
标题: 关于Failled to emit module 'SmobilerStudy'
学习官网“开发文档”-“视频列表”-“创建登录界面”视频教程时,使用"LoadClientData("pwd",PassWord);“指令编译后会出现”Failed to emit module '应用名称'“错误,而那个视频里则正常,这是什么原因呢?

作者: Lula.Jin    时间: 2019-4-22 14:21
参考这个帖子https://blog.csdn.net/qq_41647999/article/details/83587444
作者: pdcboy    时间: 2019-4-22 14:35
Lula.Jin 发表于 2019-4-22 14:21
参考这个帖子https://blog.csdn.net/qq_41647999/article/details/83587444

非常感谢,我看看去
作者: pdcboy    时间: 2019-4-22 15:09
Lula.Jin 发表于 2019-4-22 14:21
参考这个帖子https://blog.csdn.net/qq_41647999/article/details/83587444

那个帖子没啥帮助,不是编译就出现那个报警,是LoadClientData输入进去编译就会报警,没有这个指令就正常,应该不是VS软件有问题
作者: Lula.Jin    时间: 2019-4-22 16:40
那你说的LoadClientData是怎么写的呢
作者: pdcboy    时间: 2019-4-22 16:46
Lula.Jin 发表于 2019-4-22 16:40
那你说的LoadClientData是怎么写的呢

private void btnLogon_Press(object sender, EventArgs e)
        {
            try
            {
                string userID = this.txtUserName.Text.Trim();
                string password = this.txtPassword.Text.Trim();
                if (string.IsNullOrEmpty(userID))
                    throw new Exception("请输入用户名");
                if (string.IsNullOrEmpty(password))
                    throw new Exception("请输入密码");
                if (cbxRemeberPassword.Checked == true)
                {
                    //记住密码
                    //LoadClientData("pwd", password);
                    //读取密码
                    //ReadClientData("pwd", (object s, ClientDataResultHandlerArgs args) =>
                    // {
                    //     if (string.IsNullOrEmpty(args.error))
                    //     {
                    //         Toast("密码为" + args.Value);
                    //     }
                    // });
                }
            }
            catch (Exception ex)
            {
                Toast(ex.Message);
            }
        }
代码是这样的,注释取消编译就会提示那个错误,注释那几行编译就是正常的
作者: Lula.Jin    时间: 2019-4-23 11:13
你注释掉的代码写的并没有问题啊,那你断点排查下吧 或者参考smoone代码




欢迎光临 Smobiler上海石磨_.NET移动开发平台 (https://www.smobiler.com/) Powered by Discuz! X3.2