如何在ASPnet中使用gacutil?

时间:2019-05-17 03:16:15

标签: asp.net system gacutil

我发现我没有

  

System.net.http.dll

Windows中GAC文件夹中的

。不知道我是怎么丢失的。因此,我尝试使用instructions之后的ASP.net文件夹中的gacutil.exe安装它。

但是由于链接中的空格,我得到了错误。 我尝试从其目录以及GAC文件夹中运行gacutil。两者都有相似的错误。

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2>gacutil -i C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Net.Http.dll
'gacutil' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\gacutil -i System.Net.Http.dll
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\gacutil -i System.Net.Http.dll
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

对于Windows 10,路径为:C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin