最佳更新应用程序的方法. [英] Best Way For Update Application.

查看:82
本文介绍了最佳更新应用程序的方法.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用WPF技术开发游戏.我想每三天为游戏添加新功能.更新的大小对我来说很重要.我的游戏需要联网才能开始.就像在线游戏一样.另一个挑战是更新的大小.最重要的说明:我需要更新的程序不需要停止.你有什么建议? clickonce是一个不错的选择吗?感谢您的关注.请给我准则.

Hi I am developing a game with WPF technology. I want to add new Features to game every third days . the size of update is important for me. my game needs to internet for start. like an online game. another challenge is size of updates. the most important note : I need to update of the program does not needing stop. what is your suggestion? Does clickonce is good option? thanks for your attentions. give me guideline please.

推荐答案

由于您的要求不符合ClickOnce且您的应用程序是WPF,因此我将创建一个Updater类,该类将下载程序集( DLL)从您的服务器到特定的文件夹,并具有Folder Observer类,该类将尝试使用Prism加载新到达的程序集...但这只是一个意见...

您的Updater类将请求WCF服务,以查看是否有要下载的新程序集,一旦具有相同的类,便可以从服务器下载新程序集并将其保存在文件夹等模块中.

由于您将拥有一个始终在模块之类的文件夹中寻找新程序集的类,因此将新程序集加载到CAL(复合应用程序库)的ModuleCatalog中将是没有问题的.程序集加载后,您将在您的应用程序中包含新内容.

这也可以使用MEF(托管扩展框架)来实现.

我强烈建议您同时学习MEF和CAL,并尝试找出更适合您的方法(也许两者都适用).

希望这会有所帮助.
最好的问候
Raul Mainardi Neto
Since your requirements does not fit the ClickOnce and your application is WPF, I would go with creating a Updater class that would download an assembly (DLL) from your server to a specific folder, and have an Folder Observer class that would try to load the new arrived assembly using Prism... But that is just an opinion...

Your Updater class would request to a WCF service to see if there is a new assembly to download, once it has the same class can Download the new assembly from your server and save it in a module like folder...

Since you would have a class that is always looking into the module like folder for new assemblies it will be no problem to load the new assembly into the ModuleCatalog of the CAL (Composite Application Library). Once the assembly is loaded you will have the new content into your application.

This can also be achieved using MEF (Managed Extensibility Framework).

I would strongly recommend that you study both MEF and CAL, and try to figure what suits you better (maybe both).

Hope this helps.
Best regards
Raul Mainardi Neto


每三天更新一次可能很难满足.限制更新的大小也可能是一个问题,对于更新所需的功能而言,它会很大.

可将ClickOnce配置为在应用启动之前检查更新.否则,您将需要制定使用影子文件夹的计划.
Updating every three days may be tough schedule to meet. Limiting the size of the update may also be a problem, it''s going to be a large as necessary to update the required functionality.

ClickOnce can be configured to check for updated before the app starts. Otherwise you''ll need to devise a plan to use shadow folders.


这篇关于最佳更新应用程序的方法.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆