简体   繁体   English

为Windows Mobile偶然连接的应用程序创建cab文件

[英]Creating cab file for Windows Mobile Occasionally Connected Application

I have a windows mobile application that utilizes the Microsoft Sync Framework. 我有一个利用Microsoft Sync Framework的Windows Mobile应用程序。 The WCF service is hosted on my local IIS. WCF服务托管在我的本地IIS上。 It tests great while docked and connected to the internet. 停靠并连接到互联网时,它的测试效果很好。 But if I disconnect the internet to try and make changes to the local db while it is offline it loses connection to the app. 但是,如果我断开互联网连接以尝试在脱机时更改本地数据库,则会失去与该应用程序的连接。 So I just want to build a cab and install it on the device. 因此,我只想构建一个出租车并将其安装在设备上。

The problem is I don't know what I am doing and do not know what to include and what not to. 问题是我不知道我在做什么,也不知道要包括什么,不包括什么。 I tried twice and both times it failed saying it cannot find the SQL CE db (ElectricReading.sdf). 我试了两次,两次都失败了,说它找不到SQL CE数据库(ElectricReading.sdf)。

I was following this tutorial: http://www.mobilepractices.com/2008/02/how-to-create-windows-mobile-smart.html 我正在关注本教程: http : //www.mobilepractices.com/2008/02/how-to-create-windows-mobile-smart.html

But it does not seem to pick up the proper dependencies after I add ElectricBarcodeApp.exe. 但是,在添加ElectricBarcodeApp.exe之后,它似乎没有获得适当的依赖关系。 For example there is no dependency to my service library added. 例如,不存在对我的服务库的依赖关系。

Here is what my project looks like: 这是我的项目的样子:

在此处输入图片说明

So what do I need to include in the cab? 那我需要在出租车中包括什么? Any help is much appreciated. 任何帮助深表感谢。 An explanation so I can learn would be awesome too. 我可以学习的解释也很棒。 Thanks!! 谢谢!! Let me know what other information I can provide. 让我知道我还能提供什么其他信息。

EDIT: This is what my cab file looks like after I add ElectricBarcodeApp.exe: 编辑:这是我添加ElectricBarcodeApp.exe后我的cab文件的样子: 在此处输入图片说明

The CAB generation project is about as non-intuitive as it gets. CAB生成项目几乎与它一样不直观。 When you select the project, over on the right there are some little icons that are easy to miss. 当您选择项目时,在右侧的上方会有一些容易错过的小图标。 One of them is a "file view" of the target. 其中之一是目标的“文件视图”。

文件编辑器图标

From there you can select additional files to include in your CAB (right click on 'Application Folder' and select 'Add File'). 从那里,您可以选择其他文件以包含在CAB中(右键单击“应用程序文件夹”,然后选择“添加文件”)。

目标设备文件系统

Simply select your local SDF to add it to the CAB. 只需选择本地SDF即可将其添加到CAB。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从C#代码安装/执行CAb文件[Windows Mobile应用程序文件]? - Install/Execute a CAb file[Windows Mobile application file] from C# Code? 使用其他软件的数据库为偶尔连接的应用程序创建自定义安装程序 - Creating a custom installer for occasionally connected application using database of another software 为Windows Mobile 6.5应用程序创建颜色def文件或选择主题 - Creating a color def file or choosing a theme for Windows Mobile 6.5 Application 解压缩.cab文件,然后关闭带有.net mobile 3.5的Windows CE 6.0上的运行过程 - Unpacking a .cab file and then closing the running process on windows CE 6.0 with .net mobile 3.5 构建OCA的工具(偶尔连接的应用程序) - Tools for Building an OCA (Occasionally Connected Application) 在Windows Mobile 6上创建日志文件 - Creating log file on windows mobile 6 如何在Windows Forms应用程序中检测连接到USB的移动设备(Iphone)? - How to detect mobile device(Iphone) connected to USB in windows forms application? SmartDevice CAB“不是有效的Windows CE安装文件” - SmartDevice CAB “is not a valid Windows CE Setup file” Windows Mobile 6.5 CAB签名-附加值是什么? - windows mobile 6.5 CAB signing - what is the added value? .NET Compact Framework-Windows Mobile 6.5上的CAB自动更新 - .NET Compact Framework - CAB auto update on Windows Mobile 6.5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM