gacutil是否不能识别为内部或外部命令

gacutil是否不能识别为内部或外部命令

本文介绍了gacutil是否不能识别为内部或外部命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了带有添加外部Dll参考的控制台应用程序。

现在我必须将外部Dll部署到我的程序集中。

当我尝试在其中添加dll时

I have created a Console Application With Adding External Dll Ref.
Now i have to deploy my External Dll to my Assembly.
When i was trying to add my dll in GAC.

  GACUTIL.EXE /i MyLibrary.dll

命令将我的dll添加到Assembly中,它向我显示错误

command to add my dll into Assembly , Its showing me error

*gacutil is not recognized as an internal or external comma*

我该如何解决?

推荐答案

但是我如何在客户端服务器上部署我的dll,因为他可能没有Visual Studio

"But how can i deploy my dll on Client Server because he might don't have visual studio"

如果我没记错的话,gacutil也存在于C:\windows\Microsoft.Net\一些文件夹\

If I remember correctly, gacutil is also present in C:\windows\Microsoft.Net\some folder\

另一种方式:如果使用原始.cmd =>,则可以将gacutil.exe和gacutil.exe.config与脚本捆绑在一起。

Another way: If using a primitive .cmd => You could bundle gacutil.exe and gacutil.exe.config along with your script.

另一种方法:如果使用的是Windows Installer ,它具有对GACing程序集的内置支持。

Yet another way: If you are using windows installer, that has in built support for GACing assemblies.

另外,请注意,x86和x64程序集有不同的GAC(忽略您的程序集是否为MSIL)。

Also, note that there are different GACs for x86 and x64 assemblies (ignore if your assembly is MSIL).

这篇关于gacutil是否不能识别为内部或外部命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 15:13