Excel Addin clickonce部署依赖项检查 [英] Excel Addin clickonce deploy dependency check

查看:186
本文介绍了Excel Addin clickonce部署依赖项检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我们有一个通过clickonce部署的excel插件。


我们使用  ApplicationDeployment检查更新.CheckForUpdate api。


我们有一个案例,其中在addin项目中引用了一个不正确的dll,我们的代码中根本没有使用它。由于这个原因,ref进入了< my addin name> .dll.manifest

中的依赖项列表。

这个dll不应该在客户端机器中。当代码运行使用  ApplicationDeployment.CheckForUpdate检查更新时,这会妨碍以下


System.Deployment.Application。 DependentPlatformMissingExcept 离子:无法安装或运行应用程序。该应用程序需要首先在全局程序集缓存(GAC)中安装程序集Microsoft.SqlServer。 Diagnostics.STrace
版本11.0.0.0。  ;

解决方案

嗨maninder lall,


这是讨论的论坛对于Microsoft Excel的问题和反馈,我会将您的问题转移到MSDN论坛上,以便ClickOnce和Setup&部署项目


https://social.msdn.microsoft.com/Forums/en-US/home?forum=winformssetup&filter=alltypes&sort=lastpostdesc


之所以如此我们建议适当地发布您是否会获得最合格的受访者群体,而定期阅读论坛的其他合作伙伴可以分享他们的知识或从您与我们的互动中学习。感谢您的理解。


问候,


Emi Zhang

TechNet社区支持


Hi All,

We have an excel addin that is deployed via clickonce.

We do check for updates using ApplicationDeployment.CheckForUpdate api.

We have a case wherein an incorrect dll got referenced in the addin project which is not used at all in our code. Due to this the ref got into the dependencies list in <my addin name>.dll.manifest

This dll is not expected to be in the client machine. This hampers when the code runs checking for updates using ApplicationDeployment.CheckForUpdate and fails with following

System.Deployment.Application.DependentPlatformMissingException: Unable to install or run the application. The application requires that assembly Microsoft.SqlServer.Diagnostics.STrace Version 11.0.0.0 be installed in the Global Assembly Cache (GAC) first. 

解决方案

Hi maninder lall,

This is the forum to discuss questions and feedback for Microsoft Excel, I'll move your question to the MSDN forum for ClickOnce and Setup & Deployment Projects

https://social.msdn.microsoft.com/Forums/en-US/home?forum=winformssetup&filter=alltypes&sort=lastpostdesc

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

Regards,

Emi Zhang
TechNet Community Support


这篇关于Excel Addin clickonce部署依赖项检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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