为什么,当我跑步时:

gacutil –i  myAssembly.dll


我得到:

Assembly successfully added to the cache


但是然后当我运行时:

gacutil –l  myAssembly.dll


我懂了

Number of items = 0


最佳答案

尝试

gacutil –l  myAssembly


请勿再添加.dll。因此,如果该DLL已在GAC中注册,它将显示

Number of items = 1


http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx

08-06 01:24