使用Visual Studio安装程序在GAC中注册dll [英] Registering dll's in the GAC using Visual Studio Installer

查看:138
本文介绍了使用Visual Studio安装程序在GAC中注册dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Visual Studio的安装程序安装程序项目在GAC中注册/注销我的项目程序集.

I want to register/unregister my project's assemblies in the GAC using Visual Studio's Setup installer project.

我正在考虑使用自定义安装程序来利用Install()和Uninstall()方法通过gacutil.exe编写命令(以代码形式)命令.

I am thinking of using a custom installer to utilise the Install() and Uninstall() methods to write commmandline (in code) commands via the gacutil.exe.

有没有更简单的方法-还是您会这样做?请使响应保持在使用Visual Studio工具(而不是Installshield或WISE等)的范围内

Is there an easier way - or is this the way you would do this? Please keep responses within the scope of using Visual Studio tools (not Installshield or WISE etc)

干杯.

推荐答案

您不能依赖gacutil.exe,它将在目标计算机上不可用.只有安装了Windows SDK的计算机才能安装它. Visual Studio安装程序项目无需任何自定义工具即可支持在GAC中注册程序集.右键单击目标计算机上的文件系统",然后选择全局程序集缓存文件夹".

You cannot rely on gacutil.exe, it will not be available on the target machine. Only machines that have the Windows SDK installed have it. The Visual Studio Setup project supports registering assemblies in the GAC without any custom tool. Right-click "File System on Target Machine" and select "Global Assembly Cache Folder".

这篇关于使用Visual Studio安装程序在GAC中注册dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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