使用ClickOnce正常工作,按需下载程序集 [英] Downloading Assemblies on Demand with the ClickOnce not really working

查看:112
本文介绍了使用ClickOnce正常工作,按需下载程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照这里的教程 http://msdn.microsoft.com/en-us/library/ ak58kz04.aspx  但我需要重启应用程序,因为我第一次点击按钮时仍然提示我"未找到程序集"。错误。


Patrick Yong

I followed the tutorial here http://msdn.microsoft.com/en-us/library/ak58kz04.aspx but I need to restart the app because the first time I click on the button it still prompted me a "Assembly not found" error.


Patrick Yong

推荐答案

你好Patrick,

我有按照该文档上的步骤部署测试ClickOnce应用程序并成功完成。当我尝试创建一个新项目(使用我自己的代码)时,我最初确实遇到了一些错误,但最终成功了。以下是您需要注意的几点。

1. DllMapping [" ClickOnceLibrary"] =" ClickOnceLibrary" ;; ClickOnceLibrary是您要下载的程序集的名称。

2.在"应用程序文件"对话框中,您可以设置"下载组"。为了组装。当您输入新的组名时,它应与DllMapping的名称相同(在此示例中为"ClickOnceLibrary”")。

如果组名与DllMapping中的名称不匹配,则会出现下载失败异常。所以请检查这些要点,看看是否能解决问题。如果您有任何困难,请告诉我。

真诚的,基拉钱叶 MSDN用户支持在论坛中如果您对我们的支持有任何反馈,请联系msdnmg@microsoft.com
Hello Patrick,

I have followed the step on that document to deploy a test ClickOnce application and succeed. When I tried to create a new project (use my own code), I did get some errors at first but got succeed at the end. Here is some points you need to pay attention to.

1. DllMapping["ClickOnceLibrary"] = "ClickOnceLibrary"; The ClickOnceLibrary is the name of the assembly you are going to download.

2. In the Application Files dialog, you can set the “Download Group” for the assembly. When you enter a new group name, it should be the same name as DllMapping (“ClickOnceLibrary” in this example).

If the group name doesn’t match the name in DllMapping, you will get download failed exception. So please check these points to see if that solve the problem. Please tell me if you have any difficulties.

Sincerely,
Kira Qian
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com


这篇关于使用ClickOnce正常工作,按需下载程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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