开发者

Registering dll's in the GAC using Visual Studio Installer

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

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.

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)

Cheers.


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".


You can install assemblies to the GAC by adding a Global Assembly Cache folder as part of the destination file system.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜