ClickOnce和GAC

编程入门 行业动态 更新时间:2024-10-24 14:24:55
本文介绍了ClickOnce和GAC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有WinForms应用程序 3.5。我在带有多台客户端计算机的Intranet中使用clickonce进行了部署。我在Intranet Web服务器上发布应用程序( http:// desbiz / CarwinClickOnce )。

I have WinForms application 3.5. I deploy it using clickonce in intranet with several client machines. I publish application in intranet web server (desbiz/CarwinClickOnce).

在开发人员环境(我的PC)中,我的应用程序使用GAC程序集,例如Fk.Security.Common.dll v.1.0.0.0。

In developer environment (my PC), my application uses GAC assemblies, like Fk.Security.Common.dll v.1.0.0.0.

在发布-> WinForms应用程序csproj属性中的应用程序文件中,我为Fk.Security.Common.dll参考设置了包含。

In tab Publish -> Application files in Properties of WinForms application csproj, I set value Include for Fk.Security.Common.dll reference.

现在

某些客户端计算机在GAC中具有Fk.Security.Common.dll v.1.0.0.0参考

some client machines have Fk.Security.Common.dll v.1.0.0.0 reference in GAC

其他客户端在GAC中没有Fk.Security.Common.dll v.1.0.0.0参考

others client have NOT Fk.Security.Common.dll v.1.0.0.0 reference in GAC

如果客户端安装了winform应用程序使用ClickOnce会出现以下问题:

If the client installs the winform application using ClickOnce there are this issues:

1。)如果Fk.Security.Common.dll v.1.0.0.0引用在GAC中,则Fk.Security.Common。 ClickOnce中包含的dll v.1.0.0.0参考不适用。

1.) If Fk.Security.Common.dll v.1.0.0.0 reference is in GAC, the Fk.Security.Common.dll v.1.0.0.0 reference included in ClickOnce not apply.

问题:也许已编译ClickOnce中包含的Fk.Security.Common.dll v.1.0.0.0参考中的代码是比Fk.Security.Common.dll v.1.0.0.0中的代码更新更多的内容。

Problem: perhaps compilde code in Fk.Security.Common.dll v.1.0.0.0 reference included in ClickOnce is more update than code in Fk.Security.Common.dll v.1.0.0.0 reference is in GAC

解决方案:卸载Fk.Security.Common.dll v.1.0 GAC中的.0.0参考,并在GAC中安装C中包含的Fk.Security.Common.dll v.1.0.0.0参考lickOnce发布...

Solution: uninstall Fk.Security.Common.dll v.1.0.0.0 reference in GAC, and install in GAC the Fk.Security.Common.dll v.1.0.0.0 reference included in ClickOnce Publish...

(如何使用ClickoNce在GAC中卸载/安装程序集??)

2。)如果GAC中没有Fk.Security.Common.dll参考,则适用于ClickOnce中包含的Fk.Security.Common.dll v.1.0.0.0。没问题。

2.) If Fk.Security.Common.dll reference NOT is in GAC, the Fk.Security.Common.dll v.1.0.0.0 reference included in ClickOnce apply. No problem.

注意:客户端计算机上的用户具有管理员权限。

note: the user in client machine has Administrator permissions.

有任何解决此问题的方法吗?

Any solution about this issues ??

预先感谢。

推荐答案

ClickOnce 无法在GAC中安装或卸载文件。

ClickOnce cannot install or uninstall files in the GAC.

您是否编写了Fk.Security.Common.dll?如果是这样,请增加版本号(v.1.0.0.1)并重新编译。当您引用它时,请将特定版本属性设置为 True,并将版本属性设置为您的新版本号。这应该可以解决您的问题,而不必从每个人的GAC卸载旧程序集。

Did you write the Fk.Security.Common.dll? If so, increase the version number (v.1.0.0.1) and recompile it. When you reference it, set the "Specific Version" property to "True" and the "Version" property to your new version number. This should fix your problem without having to uninstall the old assembly from everyone's GAC.

更多推荐

ClickOnce和GAC

本文发布于:2023-11-12 07:32:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580890.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ClickOnce   GAC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!