如何在安装独立应用程序时解决安装在GAC上的程序集的依赖关系 [英] How to resolve dependencies of assemblies installed on GAC while installing a stand alone application

查看:58
本文介绍了如何在安装独立应用程序时解决安装在GAC上的程序集的依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在学习使用Windows Forms开发桌面应用程序。



In我的独立应用程序我指的是安装在GAC中的程序集。现在,在客户端计算机上与.NET框架一起部署此应用程序时,我还必须将这些程序集携带到客户端计算机上。这该怎么做?谁能帮我。 。 。

Hello everyone,

I am learning to develop desktop applications using Windows Forms.

In my stand-alone application I am referring to assemblies that are installed in GAC. Now while deploying this application on client machines along with .NET framework I also have to carry these assemblies onto client machine. How to do this? Can anyone help me. . .

推荐答案

您需要将所有必需的dll放到解决方案的bin文件夹中。

当你添加引用任何对你的引用时解决方案首先检查该dll GAC,如果不可用,则检查BIN。所以为了在您的客户端机器中引用该dll,您需要将该dll复制到应用程序的BIN文件夹中。



--SG
you need to put all those required dll to the bin folder of your solution.
when u add reference any reference to your solution first of all it check for that dll GAC if not available than in BIN. so on order to reference that dll in your client machine you need to copy that dll to your BIN folder of your application.

--SG


您需要在GAC中安装这些共享程序集。

这可以通过使用Gacutil来完成 - 如何在Visual C#中将程序集安装到全局程序集缓存中 [ ^ ]。

例如 gacutil -I[DriveLetter]:\ [PathToBinDirectoryInVSProject] \assembly.dll
You need to install thse shared assemblies in the GAC.
This can be done by using Gacutil - How to install an assembly into the Global Assembly Cache in Visual C#[^].
E.g. gacutil -I "[DriveLetter]:\[PathToBinDirectoryInVSProject]\assembly.dll"


这篇关于如何在安装独立应用程序时解决安装在GAC上的程序集的依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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