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

后端 未结 5 1429
攒了一身酷
攒了一身酷 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:41

    Let the runtime manage its assemblies and trust that they'll be there. If you need to install something use gacutil. If you need to uninstall something use gacutil. If you need to access an assembly then add a reference to it in your project. If you need to interact with the GAC on someone else's machine, do what @Dan says and use MSI and friends.

    Otherwise DO NOT TOUCH THE GAC

提交回复
热议问题