[英]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.