How can i get the location of the GAC using C#?

后端 未结 5 1430
攒了一身酷
攒了一身酷 2021-01-06 07:43

How can i get the location of the GAC directory using C#?

Exist an entry in the Windows Registry?

UPDATE

I need the

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-06 08:37

    Is it not always %windir%\assembly ?

    edit:

    c:\Windows>dir \windows\assembly
     Volume in drive C has no label.
     Volume Serial Number is C8BC-2EBD
    
     Directory of c:\windows\assembly
    
    08/14/2009  03:06 AM              GAC
    07/28/2009  03:07 AM              GAC_32
    09/08/2009  10:57 PM              GAC_MSIL
    08/15/2009  07:35 PM              NativeImages_v2.0.50727_32
    09/08/2009  10:57 PM              temp
    09/08/2009  09:47 PM              tmp
                   0 File(s)              0 bytes
                   6 Dir(s)   4,560,822,272 bytes free
    

提交回复
热议问题